mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 06:46:04 +01:00
Fix vehicles spawning invisible if not fading in
This commit is contained in:
@@ -18,7 +18,6 @@ function makeVeh(model, coords, synced, fade)
|
|||||||
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, synced ~= false, false)
|
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, synced ~= false, false)
|
||||||
SetVehicleHasBeenOwnedByPlayer(veh, true)
|
SetVehicleHasBeenOwnedByPlayer(veh, true)
|
||||||
if gameName ~= "rdr3" then
|
if gameName ~= "rdr3" then
|
||||||
SetEntityAlpha(veh, 0, false)
|
|
||||||
SetNetworkIdCanMigrate(NetworkGetNetworkIdFromEntity(veh), true)
|
SetNetworkIdCanMigrate(NetworkGetNetworkIdFromEntity(veh), true)
|
||||||
Wait(100)
|
Wait(100)
|
||||||
SetVehicleNeedsToBeHotwired(veh, false)
|
SetVehicleNeedsToBeHotwired(veh, false)
|
||||||
@@ -32,6 +31,7 @@ function makeVeh(model, coords, synced, fade)
|
|||||||
unloadModel(model)
|
unloadModel(model)
|
||||||
Vehicles[#Vehicles + 1] = veh
|
Vehicles[#Vehicles + 1] = veh
|
||||||
if fade ~= false then
|
if fade ~= false then
|
||||||
|
SetEntityAlpha(veh, 0, false)
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
fadeInEnt(veh)
|
fadeInEnt(veh)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user