You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No matter how many times it's called, peds will not spawn or warp into entities on the server side that are in free fall (only tested with ServerSetter) vehicles created, essentially falling from the sky which you would do to randomly handling spawning planes
The logic works on client, but not server calls.
Client Code
RegisterCommand("entitytest", function()
localcoords=vec4(-309.05, 7903.28, 1418.78, 170.4)
RequestModel(`sultan2`)
whilenotHasModelLoaded(`sultan2`) doRequestModel(`sultan2`)
Wait(100)
endlocalped=CreatePed(1, `s_m_y_pilot_01`, coords.x, coords.y, coords.z, coords.w, true, false)
localentity=CreateVehicle(`sultan2`, coords.x, coords.y, coords.z, coords.w, true, false)
whilenotDoesEntityExist(entity) doWait(0) endwhileGetPedInVehicleSeat(entity, -1) ~=peddo-- Works on first call as expectedTaskWarpPedIntoVehicle(ped, entity, -1)
print("send into seat")
Wait(100)
endend, false)
Server Code (only works once entity is on level ground)
localconfig= { spawnCoords=vec4(-309.05, 7903.28, 1418.78, 170.4) }
localped=CreatePed(1, `s_m_y_pilot_01`, config.spawnCoords.x, config.spawnCoords.y, config.spawnCoords.z, config.spawnCoords.w, true, false)
localentity=CreateVehicleServerSetter(`sultan2`, "automobile", config.spawnCoords.x, config.spawnCoords.y, config.spawnCoords.z, config.spawnCoords.w)
whilenotDoesEntityExist(entity) doWait(0) end-- Tried SetPedIntoVehicleSeat and CreatePedInsideVehiclewhileGetPedInVehicleSeat(entity, -1) ~=peddo-- Just constantly loops as it doesn't process itTaskWarpPedIntoVehicle(ped, entity, -1)
print("send into seat")
Wait(100)
end
Expected result
Should place ped into vehicle upon call
Reproduction steps
Just use the code I provided running game build 3095 and server build (b10573)
Importancy
Slight inconvenience
Area(s)
FiveM, FXServer, OneSync, Natives
Specific version(s)
FiveM Server Windows (b10573)
Additional information
No response
The text was updated successfully, but these errors were encountered:
What happened?
No matter how many times it's called, peds will not spawn or warp into entities on the server side that are in free fall (only tested with ServerSetter) vehicles created, essentially falling from the sky which you would do to randomly handling spawning planes
The logic works on client, but not server calls.
Client Code
Server Code (only works once entity is on level ground)
Expected result
Should place ped into vehicle upon call
Reproduction steps
Just use the code I provided running game build 3095 and server build (b10573)
Importancy
Slight inconvenience
Area(s)
FiveM, FXServer, OneSync, Natives
Specific version(s)
FiveM Server Windows (b10573)
Additional information
No response
The text was updated successfully, but these errors were encountered: