
Originally Posted by
zorg93
hmmm, whats with the network ID's things, i think muskels protection mod automatically sets the ID to migrate when you leave the car. but that script doesnt look like it would work as I dont think you can apply a force to your ped when in a car
you could try
Code:
GET_CHAR_COORDINATES(GetPlayerPed(), &x, &y, &z);
z += 1;
WARP_CHAR_FROM_CAR_TO_COORD(GetPlayerPed(), x, y, z);
APPLY_FORCE_TO_PED(GetPlayerPed(), 1 ,0.0f ,0.0f ,1000.0f ,0.0f ,0.0f ,0.0f ,1 ,1 ,1 ,1);
So you're saying it would look like this:
Code:
if(item_select == 6){
Ped driver;
SET_CHAR_WILL_FLY_THROUGH_WINDSCREEN(pPlayer,true);
GET_CAR_CHAR_IS_USING(pPlayer,&tmp);
GET_DRIVER_OF_CAR(tmp,&driver);
GET_CHAR_COORDINATES(GetPlayerPed(), &x, &y, &z);
z == 1;
WARP_CHAR_FROM_CAR_TO_COORD(GetPlayerPed(), &x, &y, &z);
APPLY_FORCE_TO_PED(GetPlayerPed(), 1 ,0.0f ,0.0f ,1000.0f ,0.0f ,0.0f ,0.0f ,1 ,1 ,1 ,1);
}
Or like this?:
Code:
if(item_select == 6){
GET_CHAR_COORDINATES(GetPlayerPed(), &x, &y, &z);
z == 1;
WARP_CHAR_FROM_CAR_TO_COORD(GetPlayerPed(), &x, &y, &z);
APPLY_FORCE_TO_PED(GetPlayerPed(), 1 ,0.0f ,0.0f ,1000.0f ,0.0f ,0.0f ,0.0f ,1 ,1 ,1 ,1);
PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", "Something Here.", 3000, 1);
}