Estevam2d Posted October 1, 2014 Posted October 1, 2014 how to make the element appear destroyed? local marker = createMarker ( -2023.152, 67.256, 27.463, "cylinder", 1.5, 255, 0, 0, 255 ) function Lixeirojob(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) and not isPedInVehicle(hitElement) then destroyElement (marker ) -- Element destroyed triggerServerEvent ( "receber", localPlayer ) exports.killmessages:outputMessage("*Bombeiro acaba de salvar uma casa.", root, 10, 118, 240, true) end end addEventHandler("onClientMarkerLeave", marker , Lixeirojob)
Moderators IIYAMA Posted October 1, 2014 Moderators Posted October 1, 2014 1- Just recreate it after a while. 2- Set it to another position. 3- Set it to another dimension or interior. 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