Unnamed
public text v1 · immutablefunction My_Teleporter_TestMoney(player,_Creature,action)
local money = Player:GetMoney()
local prix = price[action]
local cout = money - prix
if money >= 0 then
Player:SetMoney(cout);
travelok = 1
else
travelok = 0
end
return travelok
end
then
call the function whetre u need it
My_Teleporter_TestMoney(player,_Creature,1);