diff --git a/carwash_server.lua b/carwash_server.lua deleted file mode 100644 index 7114153..0000000 --- a/carwash_server.lua +++ /dev/null @@ -1,13 +0,0 @@ -RegisterServerEvent('carwash:checkmoney') - -AddEventHandler('carwash:checkmoney', function(price) - TriggerEvent('es:getPlayerFromId', source, function(player) - if(tonumber(player:money) >= tonumber(price)) then - player:removeMoney((price)) - TriggerClientEvent('carwash:success', source, price) - else - moneyleft = price - player:money - TriggerClientEvent('carwash:notenoughmoney', source, moneyleft) - end - end) -end) \ No newline at end of file