vc-coop icon indicating copy to clipboard operation
vc-coop copied to clipboard

Multiple ped and vehicle issues

Open LemonHaze420 opened this issue 6 years ago • 1 comments

Using the below gamemode server script, many issues can be encountered.

As there are multiple issues encountered here, a video has been provided here.

function onServerStart()
	print("Default Gamemode Started")

	local modelID = 226
	
	AddVehicle(modelID, 538.117798, 626.908203, 10.901563)
	AddPed(7, 532.501892, 636.292664, 11.043379)
	
	local vehID 					= AddVehicle(modelID, 530.393555, 618.161865, 10.901563, 2, 6)
	local PosX,PosY,PosZ 			= GetEntityPos(vehID)
	local entType 					= GetEntityType(vehID)
	print("Vehicle ID#"..vehID.." PosX: ".. PosX .. " PosY: " .. PosY .. " PosZ: " .. PosZ)
end

The above script stores the vehicle model ID 226 into a local variable when the server starts and calls the onServerStart callback. Once this value is assigned, the script then adds two vehicles and a single pedestrian to the game world and prints out some basic debugging info.

As seen in the video, one of the vehicles' audio is completely missing, despite another vehicle of the same model ID having the audio functioning as intended.

Furthermore, the vehicle seems to be unable to be destroyed and upon attempting to destroy the 'working' vehicle, the client crashed:

0x004C8556 (Access violation reading location 0x44082C33)(gta-vc.exe) [22:02:20][VC CO-OP] Trying to damage component 16 of blistac [22:02:20][VC CO-OP] Trying to damage component 12 of blistac [22:02:21][VC CO-OP]Exception C0000005 occurred at address 004C8556

If a fix is found for all of the above issues, please close this issue. However, in the event that only a single or few fixes are found for some of the above issues, please comment on this issue with the relevant commit hash, so this can be recorded and traced back in the future.

LemonHaze420 avatar Mar 23 '18 22:03 LemonHaze420