The.Pheonix Posted May 29, 2016 Posted May 29, 2016 Yo, can someone tell me why this not working ? addEventHandler("onPedWasted", getRootElement(), function (ammo, killer) local killerName = getPlayerName(killer) local weapon = getPedWeapon(killer) local wr, wg, wb = getPlayerNametagColor(killer) if getElementData ( ped, "BotTeam" ) == "Zombies" then exports.killmessages:outputMessage ( {killerName,{"padding",width=3},{"icon",id=weapon or 0},{"padding",width=3},{"color",r=162,g=2,b=2},"Zombie"},getRootElement(),wr,wg,wb ) exports.GEOcommands:giveMoney(killer,100) end end)
Moderators IIYAMA Posted May 29, 2016 Moderators Posted May 29, 2016 >ped< is just a predefined variable you made up by yourself. (>ped< it is not a predefined variable) Use >source< instead. Pls, don't read this page sloppy: https://wiki.multitheftauto.com/wiki/OnPedWasted 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
The.Pheonix Posted May 29, 2016 Author Posted May 29, 2016 >ped< is just a predefined variable you made up by yourself. (>ped< it is not a predefined variable)Use >source< instead. ty now works
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