Rest money script

Im VERY new to lua. I was wondering if anyone could help me create a script, where when a player dies, their money gets reset to a certain amount of money?


I have $55,000 in DarkRP. And if i would die, my money would reset back to the default starting money, $1,000.

And whatever DarkRP uses to set money.

give me your server IP so I can rdm on it

[lua]hook.Add( “PlayerDeath”, “SetMoneyOnDeath”, function( ply ) ply:setDarkRPVar( “money”, 1000 ) end )[/lua]

hook.Add( "PlayerDeath", "itsThatSimple", function( victim, weapon, killer ) victim:SetNWString("Money", 1000) end)

You owe me 1$