Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tweak(server): show error notify if money is not enough
  • Loading branch information
renzuzu committed Aug 18, 2021
1 parent c6f9564 commit cd9a061
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server.lua
Expand Up @@ -304,6 +304,8 @@ AddEventHandler('renzu_garage:buygarage', function(id,v)
})
xPlayer.removeMoney(v.cost)
TriggerClientEvent('renzu_notify:Notify', src, 'success','Garage', 'You Successfully Purchase this Garage ('..id..')')
else
TriggerClientEvent('renzu_notify:Notify', src, 'error','Garage', 'not enough money')
end
end)

Expand Down

0 comments on commit cd9a061

Please sign in to comment.