Guest Posted July 19, 2018 Posted July 19, 2018 guys i want to ask you when i type ' source ' and when i type ' thePlayer' for example: outputChatBox ( "Text", source ) outputChatBox ( "Text", thePlayer )
Moderators IIYAMA Posted July 20, 2018 Moderators Posted July 20, 2018 That depends on the event. https://wiki.multitheftauto.com/wiki/Server_Scripting_Events https://wiki.multitheftauto.com/wiki/Client_Scripting_Events https://wiki.multitheftauto.com/wiki/OnClientPickupHit Just read the documentation. Then you know which element is the source and also if there are any parameters passed. Only events can have the `source` predefined variable. 1 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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