Jump to content

looking for server side event


botshara

Recommended Posts

...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.

  • Thanks 1
Link to comment
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 by botshara
Link to comment
  • Moderators

Well you might be able to make it with:

"onVehicleEnter" 
-- > save

-------------------

"onPlayerDamage"
-- maybe a delay? (not sure)
isPedInVehicle 
-- > no vehicle?
-- > fall off

 

Edited by IIYAMA
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...