Environment questions
GTA V version: 1.0.2944.0
Up to date: Yes
Legit or Pirate copy: Legit
Purchased where - Steam/Rockstar Launcher/Epic: Steam
Windows version: Windows 11
Did you try to delete content_index.xml and try again? No
System specifications: Ryzen 5 3600X Processor with RTX 2060 Graphics Card
CitizenFX crash zip file (‘Save information’ on a crash):
CfxCrashDump_2023_08_04_13_03_50.zip (1.7 MB)
logs/CitizenFX_log files:
CitizenFX_log_2023-08-04T130004.log (121.7 KB)
.dmp files/report IDs:
67817e04-5e31-497c-bcc6-c2e2961c68c6.dmp (10.7 MB)
Important parts
What is the issue you’re having? Clients crash when going near a stryder which was spawned in via CreateVehicleServerSetter.
What are you trying to do? Spawn a stryder using the CreateVehicleServerSetter native (using the type bike
).
What have you tried already to fix the issue? Spawning the vehicle with type automobile instead and using vMenu vehicle spawner (which both seemed to work fine).
What did you do to get this issue? Spawned a stryder using CreateVehicleServerSetter with the vehicle type as bike.
What server did you get this issue on? Roleplay UK. Also occurred on a blank server with only vMenu & runcode enabled on artifact version 6613 (game build 2545).
Additional comments
Thought I’d report this noting that it was stated in this post that quadbikes should use the vehicle type bike
. Also it seems to be more likely to crash if 2+ clients are in the area where the vehicle is spawned.
Reproduceable Code (Server Side):
local playerPed = GetPlayerPed(tonumber(GetPlayers()[1]))
local coords = GetEntityCoords(playerPed)
local heading = GetEntityHeading(playerPed)
local entityHandle = CreateVehicleServerSetter(`stryder`, "bike", coords.x, coords.y, coords.z, heading)