Jump to content

Problem whit attachElements!


ertser17

Recommended Posts

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) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...