Spawning Entites

The anticheat detects when someone spawns large amounts of entities, these can be peds, vehicles or objects.

If you want to spawn large amounts of entities that only need to be visible for certain people, you can spawn them in a non-networked way, this prevents the anticheat from thinking they are spawned by a malicious actor.

Keep in mind vehicles that are not spawned on the network are only viisble for the current player!

Vehicles:

CreateVehicle(
	modelHash --[[ Hash ]], 
	x --[[ number ]], 
	y --[[ number ]], 
	z --[[ number ]], 
	heading --[[ number ]], 
	isNetwork --[[ boolean ]], -- <= Set this to false
 	netMissionEntity --[[ boolean ]] -- <= Set this to false
)

Objects:

CreateObject(
	modelHash --[[ Hash ]], 
	x --[[ number ]], 
	y --[[ number ]], 
	z --[[ number ]], 
	isNetwork --[[ boolean ]], -- <= Set this to false
	netMissionEntity --[[ boolean ]], -- <= Set this to false
	doorFlag --[[ boolean ]]
)

Peds:

CreatePed(
	pedType --[[ integer ]], 
	modelHash --[[ Hash ]], 
	x --[[ number ]], 
	y --[[ number ]], 
	z --[[ number ]], 
	heading --[[ number ]], 
	isNetwork --[[ boolean ]],  -- <= Set this to false
	bScriptHostPed --[[ boolean ]]
)

Last updated