Cajolingsquare Posted November 30, 2016 Share Posted November 30, 2016 Hi. I need help with a resource, I have been looking for some resource that rewards the player with money (some decent amount of money) when killing an npc. For npcs use the resource NPC HLC traffic ( http://crystalmv.net84.net/pages/scripts/npchlc_traffic.php ). I searched the resource community but found nothing. Someone who could help me or support me with this. Link to comment
Rose Posted November 30, 2016 Share Posted November 30, 2016 Copy this script (server) function died(_, killer) if (killer and getElementType(killer) == "player" and getElementType(source) == "ped") then givePlayerMoney(killer, 500) end end addEventHandler("onPedWasted", root, died) --Add the Event when ped1 dies 1 Link to comment
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