Hello! I edited a basic script it adds objects to vehicle , but problem is that only i see the changes other players don't see them ,what may be the problem?
local ccx,ccy,ccz,ccrx,ccry,ccrz= 0.5,-2,-0.3,0,0,0
local acx,acy,acz,acrx,acry,acrz= -0.5,-2,-0.3,0,0,0
function upgradeTheCar(cmd)
local veh = getPedOccupiedVehicle ( localPlayer )
csmoke = createObject( 2780, 2,2,2)
asmoke = createObject( 2780, 2,2,2)
setElementCollisionsEnabled ( base, false )
attachElements ( csmoke, veh, ccx,ccy,ccz,ccrx,ccry,ccrz)
attachElements ( asmoke, veh, acx,acy,acz,acrx,acry,acrz)
end
addCommandHandler("upgradeMyCar", upgradeTheCar)