move requestmodel timeout to config

This commit is contained in:
Bostra committed 2024-04-27 20:49:14 -05:00
1 parent d9fbf56164
commit d60d10a5a5
11 files changed
+23 -22

No files matched your search

+3 -3
View File
@@ -22,7 +22,7 @@ end
CreateThread(function()
local Ped = "g_m_y_famdnf_01"
lib.requestModel("g_m_y_famdnf_01", 500)
lib.requestModel("g_m_y_famdnf_01", Config.requestModelTime)
labkitlocation = Config.buyheroinlabkit
heroinkitdealer = CreatePed(0, Ped,labkitlocation.x, labkitlocation.y, labkitlocation.z-1, 180.0, false, false)
FreezeEntityPosition(heroinkitdealer, true)
@@ -262,7 +262,7 @@ AddEventHandler("md-drugs:client:cleanheroinlabkit", function()
disableMouse = false,
disableCombat = true,
disableInventory = true,
}, {}, {}, {}, function()-- Done
}, {}, {}, {}, function()-- Done
TriggerServerEvent("md-drugs:server:removecleaningkitheroin")
ClearPedTasks(PlayerPedId())
@@ -271,7 +271,7 @@ end)
RegisterNetEvent("md-drugs:client:deletedirtyheroin")
AddEventHandler("md-drugs:client:deletedirtyheroin", function()
DeleteObject(dirtylabkitheroin)
DeleteObject(dirtylabkitheroin)
herointable = false
Wait(1000)
TriggerEvent("md-drugs:client:setheroinlabkit")