Skip to content

Commit

Permalink
add requestModelTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
SKITTLE6969 committed Dec 27, 2023
1 parent dd5ceca commit 764d1b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ end
---@param coords vector4
---@return number vehicleEntity
local function createShowroomVehicle(model, coords)
lib.requestModel(model)
lib.requestModel(model, requestModelTimeout)
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, false, false)
SetModelAsNoLongerNeeded(model)
SetVehicleOnGroundProperly(veh)
Expand Down
3 changes: 2 additions & 1 deletion config/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ return {
useTarget = false,
debugPoly = false,
enableFreeUseBuy = true, -- Allows players to buy from NPC shops

requestModelTimeout = 5000, -- load model timeout for oxlib

finance = {
enable = true, -- Enables the financing system. Turning this off does not affect already financed vehicles
commissionRate = 0.05, -- Percent that goes to sales person from a finance sale 5%
Expand Down

0 comments on commit 764d1b6

Please sign in to comment.