Skip to content

Commit

Permalink
Revert "Add model type validity checks"
Browse files Browse the repository at this point in the history
This reverts commit b3f6075.
  • Loading branch information
kibook committed Feb 15, 2022
1 parent f784012 commit 4e2d100
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,6 @@ function PlaceEntityOnGroundProperly(entity, p1)
return Citizen.InvokeNative(0x9587913B9E772D29, entity, p1)
end

function IsModelAnObject(model)
return Citizen.InvokeNative(0x274EE1B90CFA669E, model)
end

function EnableSpoonerMode()
local x, y, z = table.unpack(GetGameplayCamCoord())
local pitch, roll, yaw = table.unpack(GetGameplayCamRot(2))
Expand Down Expand Up @@ -628,10 +624,6 @@ function SpawnObject(name, model, x, y, z, pitch, roll, yaw, collisionDisabled,
return nil
end

if not IsModelAnObject(model) then
return nil
end

if not LoadModel(model) then
return nil
end
Expand Down Expand Up @@ -686,10 +678,6 @@ function SpawnVehicle(name, model, x, y, z, pitch, roll, yaw, collisionDisabled,
return nil
end

if not IsModelAVehicle(model) then
return nil
end

if not LoadModel(model) then
return nil
end
Expand Down Expand Up @@ -762,10 +750,6 @@ function SpawnPed(props)
return nil
end

if not IsModelAPed(props.model) then
return nil
end

if not LoadModel(props.model) then
return nil
end
Expand Down

0 comments on commit 4e2d100

Please sign in to comment.