[Release][ES][MAY 2017] Slot Machine


#1

Slot machine resource


DESCTIPTION

  • Works only with essential
  • Press HOME to open GUI

INFO

  • You can win with LINE or GROUP
  • You can bet multiple of ten
  • You can add how many emoji you want ( More emoji = Lower chance to win )
  • You can edit money recive from wins

GUI


SETUP

-- -- -- -- E 	D 	I 	T -- -- -- --
local EmojiList = {
	'🍎', 
	'🍋', -- don't remove
	'🍉', 
	'🍊', 
	'🍒', -- don't remove
	'🍇', 
	'🍑', 
	'🍓'
}
local price = {}
price.line3 = {
	cherry = 20,
	lemon = 15,
	other = 10
}
price.line2 = {
	cherry = 5,
	other = 2
}

Download es_slot (3KB)


CREDITS@Ideo @Kanersps


Emoji List


Betting / Jackpot Machines? Inproved Police Station?
vRP Slotmachines
#2

Scripters are mad lol :slight_smile: Good idea here :slight_smile:


#3

Anyone know how to make the new ver of es work?


#4

It seems funny ^^
I’ll try that later

Thanks for sharing :wink:


#5

Interesting and fun idea! Thanks for sharing! I did notice that the resource.lua references the slot_client.lua script, but there isn’t one included. It doesn’t seem to break anything, though.


#6

yeah, is ok

  • FIXED

#7

no client.lua?
normal?


#8

why would this require essential mode, like, ever?


#9

@nihonium
to use money?

function Spin()
	rand1 = EmojiList[math.random(#EmojiList)]
	rand2 = EmojiList[math.random(#EmojiList)]
	rand3 = EmojiList[math.random(#EmojiList)]
	TriggerServerEvent('es_slot:sv:1',money,rand1,rand2,rand3) -- 
end

#10

anyone can help me make it only open my coords ? like casino

hmm why its has no colors in chat ?

so edit the version so u can add coords 2 ites_slot.rar (3.0 KB)
u can add coords in gui.lua and cant open menu anywhere

still cant get colors into chat :frowning:


#11

Help me

Hello I am looking for on the map The Casion where is it
since I can not find the Coord
Please send a quick message


#12

nothing happens

Error running call reference function for resource es_slot: citizen:/scripting/lua/scheduler.lua:351: slot_server.lua:4: attempt to compare number with nil
stack traceback:
slot_server.lua:4: in upvalue 'ref’
citizen:/scripting/lua/scheduler.lua:337: in function citizen:/scripting/lua/scheduler.lua:336
[C]: in function 'xpcall’
citizen:/scripting/lua/scheduler.lua:336: in function citizen:/scripting/lua/scheduler.lua:335
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:351: in function citizen:/scripting/lua/scheduler.lua:322
[C]: in function 'coroutine.resume’
citizen:/scripting/lua/scheduler.lua:34: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow’
citizen:/scripting/lua/MessagePack.lua:465: in field 'any’
citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack’
citizen:/scripting/lua/scheduler.lua:563: in local 'cb’
server/player/login.lua:145: in upvalue 'handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running call reference function for resource es_slot: citizen:/scripting/lua/scheduler.lua:351: slot_server.lua:4: attempt to compare number with nil
stack traceback:
slot_server.lua:4: in upvalue 'ref’
citizen:/scripting/lua/scheduler.lua:337: in function citizen:/scripting/lua/scheduler.lua:336
[C]: in function 'xpcall’
citizen:/scripting/lua/scheduler.lua:336: in function citizen:/scripting/lua/scheduler.lua:335
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:351: in function citizen:/scripting/lua/scheduler.lua:322
[C]: in function 'coroutine.resume’
citizen:/scripting/lua/scheduler.lua:34: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow’
citizen:/scripting/lua/MessagePack.lua:465: in field 'any’
citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack’
citizen:/scripting/lua/scheduler.lua:563: in local 'cb’
server/player/login.lua:145: in upvalue 'handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running call reference function for resource es_slot: citizen:/scripting/lua/scheduler.lua:351: slot_server.lua:4: attempt to compare number with nil
stack traceback:
slot_server.lua:4: in upvalue 'ref’
citizen:/scripting/lua/scheduler.lua:337: in function citizen:/scripting/lua/scheduler.lua:336
[C]: in function 'xpcall’
citizen:/scripting/lua/scheduler.lua:336: in function citizen:/scripting/lua/scheduler.lua:335
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:351: in function citizen:/scripting/lua/scheduler.lua:322
[C]: in function 'coroutine.resume’
citizen:/scripting/lua/scheduler.lua:34: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow’
citizen:/scripting/lua/MessagePack.lua:465: in field 'any’
citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack’
citizen:/scripting/lua/scheduler.lua:563: in local 'cb’
server/player/login.lua:145: in upvalue 'handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running call reference function for resource es_slot: citizen:/scripting/lua/scheduler.lua:351: slot_server.lua:4: attempt to compare number with nil
stack traceback:
slot_server.lua:4: in upvalue 'ref’
citizen:/scripting/lua/scheduler.lua:337: in function citizen:/scripting/lua/scheduler.lua:336
[C]: in function 'xpcall’
citizen:/scripting/lua/scheduler.lua:336: in function citizen:/scripting/lua/scheduler.lua:335
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:351: in function citizen:/scripting/lua/scheduler.lua:322
[C]: in function 'coroutine.resume’
citizen:/scripting/lua/scheduler.lua:34: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow’
citizen:/scripting/lua/MessagePack.lua:465: in field 'any’
citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack’
citizen:/scripting/lua/scheduler.lua:563: in local 'cb’
server/player/login.lua:145: in upvalue 'handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running call reference function for resource es_slot: citizen:/scripting/lua/scheduler.lua:351: slot_server.lua:4: attempt to compare number with nil
stack traceback:
slot_server.lua:4: in upvalue 'ref’
citizen:/scripting/lua/scheduler.lua:337: in function citizen:/scripting/lua/scheduler.lua:336
[C]: in function 'xpcall’
citizen:/scripting/lua/scheduler.lua:336: in function citizen:/scripting/lua/scheduler.lua:335
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:351: in function citizen:/scripting/lua/scheduler.lua:322
[C]: in function 'coroutine.resume’
citizen:/scripting/lua/scheduler.lua:34: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow’
citizen:/scripting/lua/MessagePack.lua:465: in field 'any’
citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack’
citizen:/scripting/lua/scheduler.lua:563: in local 'cb’
server/player/login.lua:145: in upvalue 'handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running call reference function for resource es_slot: citizen:/scripting/lua/scheduler.lua:351: slot_server.lua:4: attempt to compare number with nil
stack traceback:
slot_server.lua:4: in upvalue 'ref’
citizen:/scripting/lua/scheduler.lua:337: in function citizen:/scripting/lua/scheduler.lua:336
[C]: in function 'xpcall’
citizen:/scripting/lua/scheduler.lua:336: in function citizen:/scripting/lua/scheduler.lua:335
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:351: in function citizen:/scripting/lua/scheduler.lua:322
[C]: in function 'coroutine.resume’
citizen:/scripting/lua/scheduler.lua:34: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow’
citizen:/scripting/lua/MessagePack.lua:465: in field 'any’
citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack’
citizen:/scripting/lua/scheduler.lua:563: in local 'cb’
server/player/login.lua:145: in upvalue 'handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running call reference function for resource es_slot: citizen:/scripting/lua/scheduler.lua:351: slot_server.lua:4: attempt to compare number with nil
stack traceback:
slot_server.lua:4: in upvalue 'ref’
citizen:/scripting/lua/scheduler.lua:337: in function citizen:/scripting/lua/scheduler.lua:336
[C]: in function 'xpcall’
citizen:/scripting/lua/scheduler.lua:336: in function citizen:/scripting/lua/scheduler.lua:335
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:351: in function citizen:/scripting/lua/scheduler.lua:322
[C]: in function 'coroutine.resume’
citizen:/scripting/lua/scheduler.lua:34: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow’
citizen:/scripting/lua/MessagePack.lua:465: in field 'any’
citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack’
citizen:/scripting/lua/scheduler.lua:563: in local 'cb’
server/player/login.lua:145: in upvalue 'handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function 'error’
citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
1010434
engineHealth 1000.0

Auto-Scroll
Befehl

error errror

i have ESX

Help me


#13

it isn’t compatible with fx, or edit the script to fx


#14

Yes what should you change that it is compatible for esx ? no Coder :smiley: