Jump to content

Slot machine script don”t work


enzopaul4

Recommended Posts

function Slotmachine:StartPlayer(thePlayer)
	if(exports.global:takeMoney(thePlayer) >= self.prices.bet) then
		if(self.canSpin == true) then
			exports.global:giveMoney(thePlayer, -self.prices.bet)
			triggerClientEvent(thePlayer, "onSlotmachineWintext", thePlayer, "#FF0000-$"..self.prices.bet)
			self:Start(thePlayer)
		end
	else
		triggerClientEvent(thePlayer, "onSlotmachineWintext", thePlayer, "#FF0000Iti trebuie $"..self.prices.bet.." lei , ca sa dai de maneta")
	end
end

Hi guys , i make this script for my server , and this isn”t work , here is the problem i see in the debug script and consol , but i cannot find it.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...