- Katılım
- 4 yıl 3 ay 9 gün
- Mesajlar
- 229
Kod:
Hotwire = function()
local plate = GetVehicleNumberPlateText(GetVehiclePedIsIn(PlayerPedId(), true))
if not startedEngine[plate] and not hotwiredVeh[GetVehicleNumberPlateText(veh)] then
local vehicle = GetVehiclePedIsIn(GetPlayerPed(-1), true)
if vehicle ~= nil and vehicle ~= 0 then
if GetPedInVehicleSeat(vehicle, -1) == GetPlayerPed(-1) then
IsHotwiring = true
local dict = "anim@amb@clubhouse@tutorial@bkr_tut_ig3@"
local anim = "machinic_loop_mechandplayer"
TaskPlayAnim(PlayerPedId(), 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', 'machinic_loop_mechandplayer' ,1.0, 4.0, -1, 49, 0, false, false, false)
RequestAnimDict(dict)
while not HasAnimDictLoaded(dict) do
RequestAnimDict(dict)
Citizen.Wait(100)
end
if exports["reload-skillbar"]:taskBar(math.random(4000,15000),math.random(10,20)) ~= 100 then
StopAnimTask(GetPlayerPed(-1), "anim@amb@clubhouse@tutorial@bkr_tut_ig3@", "machinic_loop_mechandplayer", 1.0)
SetVehicleEngineOn(vehicle, false, false, true)
exports['swt_notifications']:Negative("Düz Kontak","Düz Kontak Başarısız","top-right",1500,true)
IsHotwiring = false
return
end
if exports["reload-skillbar"]:taskBar(math.random(4000,15000),math.random(10,20)) ~= 100 then
StopAnimTask(GetPlayerPed(-1), "anim@amb@clubhouse@tutorial@bkr_tut_ig3@", "machinic_loop_mechandplayer", 1.0)
SetVehicleEngineOn(vehicle, false, false, true)
exports['swt_notifications']:Negative("Düz Kontak","Düz Kontak Başarısız!","top-right",1500,true)
IsHotwiring = false
return
end
if exports["reload-skillbar"]:taskBar(1500,math.random(5,15)) ~= 100 then
StopAnimTask(GetPlayerPed(-1), "anim@amb@clubhouse@tutorial@bkr_tut_ig3@", "machinic_loop_mechandplayer", 1.0)
SetVehicleEngineOn(vehicle, false, false, true)
exports['swt_notifications']:Negative("Düz Kontak","Düz Kontak Başarısız","top-right",1500,true)
IsHotwiring = false
return
end
StopAnimTask(GetPlayerPed(-1), "anim@amb@clubhouse@tutorial@bkr_tut_ig3@", "machinic_loop_mechandplayer", 1.0)
exports['swt_notifications']:Success("Düz Kontak","Düz Kontak Başarılı","top-right",1500,true)
hotwiredVeh[plate] = true
startedEngine[plate] = true
IsHotwiring = false
end
end
end
end
bu kod satırına nasıl item kontrolü ettirebilirim