nikitafloy Posted May 27, 2014 Posted May 27, 2014 function identTarg ( targettedElement ) if getElementType ( targettedElement ) == "object" and getElementModel ( targettedElement ) == 2922 then ... end end addEventHandler ( "onPlayerTarget", getRootElement(), identTarg ) Нужен скриптер?Benuff Server - Russian Site MTA:SA - Updating, Client, Game, Problem Solving, Help for Russian Players and etc.
Moderators IIYAMA Posted May 27, 2014 Moderators Posted May 27, 2014 function identTarg ( targettedElement ) if targettedElement and getElementType ( targettedElement ) == "object" and getElementModel ( targettedElement ) == 2922 then end end addEventHandler ( "onPlayerTarget", getRootElement(), identTarg ) Read wiki.... targettedElement: The element the player is targetting. false if no element is being targetted anymore. 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
nikitafloy Posted May 27, 2014 Author Posted May 27, 2014 function identTarg ( targettedElement ) if targettedElement and getElementType ( targettedElement ) == "object" and getElementModel ( targettedElement ) == 2922 then end end addEventHandler ( "onPlayerTarget", getRootElement(), identTarg ) Read wiki.... targettedElement: The element the player is targetting. false if no element is being targetted anymore. Default wall with object. No more. Нужен скриптер?Benuff Server - Russian Site MTA:SA - Updating, Client, Game, Problem Solving, Help for Russian Players and etc.
Moderators IIYAMA Posted May 27, 2014 Moderators Posted May 27, 2014 I just solved your warning, which was the question you asked. Be more clear if you have more questions. 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