carlos eduardo Posted February 10, 2018 Share Posted February 10, 2018 Queria saber como eu setar a mark q eu criei em outra dimensão. parte do codigo: veh = {} addCommandHandler( "auto" , function (source) if isElementWithinMarker(source, MarkC) then setElementDimension ( source, 5 ) destroyElement(source, MarkC) veh[source] = createVehicle(546, 2415.14673, 89.43729, 26.47131) Mark1 = createMarker(2372.47876, 91.65331, 26.48655, "cylinder",2,255,0,0,180) warpPedIntoVehicle(source, veh[source]) else end end) Link to comment
pz1 Posted February 10, 2018 Share Posted February 10, 2018 veh = {} addCommandHandler( "auto" , function (source) if isElementWithinMarker(source, MarkC) then destroyElement(source, MarkC) veh[source] = createVehicle(546, 2415.14673, 89.43729, 26.47131) Mark1 = createMarker(2372.47876, 91.65331, 26.48655, "cylinder",2,255,0,0,180) setElementDimension(Mark1, DIMENSÃOAQUI) warpPedIntoVehicle(source, veh[source]) else end end) No isElementWithinMarker e no destroyElement você está definindo MarkC mas nesse código não existe nenhum MakC, caso não exista nenhum MarkC o script não irá funcionar. Link to comment
carlos eduardo Posted February 10, 2018 Author Share Posted February 10, 2018 3 hours ago, pz1 said: veh = {} addCommandHandler( "auto" , function (source) if isElementWithinMarker(source, MarkC) then destroyElement(source, MarkC) veh[source] = createVehicle(546, 2415.14673, 89.43729, 26.47131) Mark1 = createMarker(2372.47876, 91.65331, 26.48655, "cylinder",2,255,0,0,180) setElementDimension(Mark1, DIMENSÃOAQUI) warpPedIntoVehicle(source, veh[source]) else end end) No isElementWithinMarker e no destroyElement você está definindo MarkC mas nesse código não existe nenhum MakC, caso não exista nenhum MarkC o script não irá funcionar. ok vlw. Link to comment
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