N9.Xzi Posted May 22, 2016 Posted May 22, 2016 (edited) This is my script for race spawn vehicles, but RotZ (randomSpawn[7]) for vehicle don't want to work: local spawns = getElementData(Race.currentMap, "spawnPoints") spawnID = spawnID + 1 if spawnID > #spawns then spawnID = 1 end local randomSpawn = spawns[spawnID] local raceVehicle = getElementData(player, "raceVehicle") if isElement(raceVehicle) then destroyElement(raceVehicle) end raceVehicle = createVehicle(randomSpawn[1], randomSpawn[2], randomSpawn[3], randomSpawn[4], randomSpawn[5], randomSpawn[6], randomSpawn[7], string.sub(getPlayerName(player):gsub("#%x%x%x%x%x%x", ""), 1, -- s8) -->) outputChatBox("veh: "..randomSpawn[1], player, 255, 255, 255, true) outputChatBox("x: "..randomSpawn[2], player, 255, 255, 255, true) outputChatBox("y: "..randomSpawn[3], player, 255, 255, 255, true) outputChatBox("z: "..randomSpawn[4], player, 255, 255, 255, true) outputChatBox("rx: "..randomSpawn[5], player, 255, 255, 255, true) outputChatBox("ry: "..randomSpawn[6], player, 255, 255, 255, true) outputChatBox("rz: "..randomSpawn[7], player, 255, 255, 255, true) What I missed or did not write correctly? Help please, do not load a spawn for vehicle (randomSpawn[7]). Edited May 22, 2016 by Guest
Rudransh Posted May 22, 2016 Posted May 22, 2016 outputChatBox("rz: "..randomSpawn[7], player, 255, 255, 255, true try putting this code
N9.Xzi Posted May 22, 2016 Author Posted May 22, 2016 outputChatBox("rz: "..randomSpawn[7], player, 255, 255, 255, true try putting this code Don't work, debug string is: " ["?" boolean value] ".
Dimos7 Posted May 22, 2016 Posted May 22, 2016 createVehicle(model, x, y, z , rx, ry, rz) i hope that will help
N9.Xzi Posted May 22, 2016 Author Posted May 22, 2016 createVehicle(model, x, y, z , rx, ry, rz) i hope that will help I'm create the vehicle from map: createVehicle(randomSpawn[1], randomSpawn[2], randomSpawn[3], randomSpawn[4], randomSpawn[5], randomSpawn[6], randomSpawn[7]) randomSpawn[1], randomSpawn[2], randomSpawn[3], randomSpawn[4], randomSpawn[5], randomSpawn[6], randomSpawn[7] = model, x, y, z , rx, ry, rz. And this don't work.
N9.Xzi Posted May 22, 2016 Author Posted May 22, 2016 mate that is from the wiki rotX and rotY is work! Only rotZ don't want. I came here for help, not advice.
Rudransh Posted May 22, 2016 Posted May 22, 2016 mate that is from the wiki rotX and rotY is work! Only rotZ don't want. I came here for help, not advice. lol mate, he is helping you. If you are so rude and arrogant then i would say, get lost nigga
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