Hero192 Posted September 7, 2015 Posted September 7, 2015 Why i get this warning in line .. ? and can anyone clear this code speakerBox = {} addEvent ( "onPlayerPlaceSpeakerBox", true ) addEventHandler ( "onPlayerPlaceSpeakerBox", root, function (isCar ) if ( isElement ( speakerBox [source] ) ) then local x, y, z = getElementPosition ( speakerBox [source] ) destroyElement ( speakerBox [source] ) end local x, y, z = getElementPosition ( source ) local rx, ry, rz = getElementRotation ( source ) speakerBox [source] = createObject ( 2229, x-0.5, y+1, z-1, 0, 0, rx ) triggerClientEvent ( root, "onPlayerStartSpeakerBoxSound", root,source,isCar,defaultMusic) if ( isCar ) then local car = getPedOccupiedVehicle ( source ) local box = speakerBox [source] attachElements ( box, car, 0.25, -3.3, -0.5, -0.5, 0, 0 ) end end)
DNL291 Posted September 7, 2015 Posted September 7, 2015 What's the problem with your code and where is the warning? What do you mean by "clear this code"?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now