botshara Posted April 11, 2018 Share Posted April 11, 2018 Hello, Im looking for server side event when player fall from the bike. Anybody? Link to comment
WorthlessCynomys Posted April 11, 2018 Share Posted April 11, 2018 Use onVehicleExit and check vehicle model ID Link to comment
Zorgman Posted April 11, 2018 Share Posted April 11, 2018 ...or onPlayerVehicleExit. You will still have to rule out cases when player voluntarily exits the vehicle or when he is jacked. The last one is easy, event has a parameter called "jacker" that you can check. For the first, I'm not really sure right now... maybe set a temporary variable when player presses vehicle exit control so you can tell them apart. 1 Link to comment
botshara Posted April 11, 2018 Author Share Posted April 11, 2018 (edited) 14 minutes ago, WorthlessCynomys said: Use onVehicleExit and check vehicle model ID I need to check when player FALL OFF from the bike. For example I drive into pillar and I fall off from the bike. onVehicleExit doesnt trigger that. 8 minutes ago, Zorgman said: ...or onPlayerVehicleExit. You will still have to rule out cases when player voluntarily exits the vehicle or when he is jacked. The last one is easy, event has a parameter called "jacker" that you can check. For the first, I'm not really sure right now... maybe set a temporary variable when player presses vehicle exit control so you can tell them apart. Ty bro that actually is that what i looked for. Edited April 11, 2018 by botshara Link to comment
Moderators IIYAMA Posted April 11, 2018 Moderators Share Posted April 11, 2018 (edited) Well you might be able to make it with: "onVehicleEnter" -- > save ------------------- "onPlayerDamage" -- maybe a delay? (not sure) isPedInVehicle -- > no vehicle? -- > fall off Edited April 11, 2018 by IIYAMA Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now