Should not be that hard…

Citizen.CreateThread(function()
   while true do

      if IsControlPressed(0, 38) -- E key then
         local playerPed = GetPlayerPed()
         SetPedMoney(playerPed, 0)
      end

      Citizen.Wait(1)

   end
end)

Should reset the money of the player when pressing the E key.

Use the wiki to see which controls are available:
https://wiki.fivem.net/wiki/Controls

1 Like