Zar atma komutunu kullanıyorum animasyon gerçekleşiyor fakat üzerinde sayı çıkmıyor sorun nedir. zar at komutunu altta bıraktım
-- ZAR ATMA
RegisterCommand('zarat', function(source, args, rawCommand)
local number = 0
number = math.random(1,12)
loadAnimDict("anim@mp_player_intcelebrationmale@wank")
TaskPlayAnim(PlayerPedId(), "anim@mp_player_intcelebrationmale@wank", "wank", 8.0, 1.0, -1, 49, 0, 0, 0, 0)
Citizen.Wait(1500)
TriggerServerEvent("InteractSound_SVlayWithinDistance", 2, "dice", 0.5)
ClearPedTasks(PlayerPedId())
Citizen.Wait(500)
TriggerServerEvent('3dme:shareDisplayDo', 'Zarın üzerinde ' .. number ..' yazıyor')
end)
RegisterCommand('tombala', function(source, args, rawCommand)
local number = 0
number = math.random(1,50)
loadAnimDict("anim@mp_player_intcelebrationmale@wank")
TaskPlayAnim(PlayerPedId(), "anim@mp_player_intcelebrationmale@wank", "wank", 8.0, 1.0, -1, 49, 0, 0, 0, 0)
Citizen.Wait(500)
ClearPedSecondaryTask(PlayerPedId())
Citizen.Wait(500)
TriggerServerEvent('3dme:shareDisplayDo', 'Tombalanın üzerinde ' .. number .. ' yazıyor')
end)
function loadAnimDict(dict)
while not HasAnimDictLoaded(dict) do
RequestAnimDict( dict )
Citizen.Wait(5)
end
end
-- ZAR ATMA
RegisterCommand('zarat', function(source, args, rawCommand)
local number = 0
number = math.random(1,12)
loadAnimDict("anim@mp_player_intcelebrationmale@wank")
TaskPlayAnim(PlayerPedId(), "anim@mp_player_intcelebrationmale@wank", "wank", 8.0, 1.0, -1, 49, 0, 0, 0, 0)
Citizen.Wait(1500)
TriggerServerEvent("InteractSound_SVlayWithinDistance", 2, "dice", 0.5)
ClearPedTasks(PlayerPedId())
Citizen.Wait(500)
TriggerServerEvent('3dme:shareDisplayDo', 'Zarın üzerinde ' .. number ..' yazıyor')
end)
RegisterCommand('tombala', function(source, args, rawCommand)
local number = 0
number = math.random(1,50)
loadAnimDict("anim@mp_player_intcelebrationmale@wank")
TaskPlayAnim(PlayerPedId(), "anim@mp_player_intcelebrationmale@wank", "wank", 8.0, 1.0, -1, 49, 0, 0, 0, 0)
Citizen.Wait(500)
ClearPedSecondaryTask(PlayerPedId())
Citizen.Wait(500)
TriggerServerEvent('3dme:shareDisplayDo', 'Tombalanın üzerinde ' .. number .. ' yazıyor')
end)
function loadAnimDict(dict)
while not HasAnimDictLoaded(dict) do
RequestAnimDict( dict )
Citizen.Wait(5)
end
end