Jump to content

Is there any events to realize an element got damaged?


ERAGON007

Recommended Posts

Posted

So , we have an object

local theObject = createObject(1959, 0, 0, 0)

 

i want to know when a player beats theObject and for example if the total damage dealt was 100 then give the player an object

 

 

 

  • Moderators
Posted
18 minutes ago, ERAGON007 said:

i want to know when a player beats theObject and for example if the total damage dealt was 100 then give the player an object

There are 2 events:
https://wiki.multitheftauto.com/wiki/Client_Scripting_Events#Object_events

  • Like 1
  • Thanks 1

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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