MilesFox92 Posted January 7, 2020 Share Posted January 7, 2020 Is there any way to enable collisions with cars (That were created with Map Editor and are part of the map) in the race gamemode? I mean, the ordinary collisions like in other gamemodes, and not just some kind of tank mode for those cars. P.S. I know almost nothing about Lua scripting. Link to comment
KatastrofaS Posted January 14, 2020 Share Posted January 14, 2020 <marker id="marker (1)" posX="0" posY="0" posZ="0"> <vehicle id="veh (Police LS) (1)" model="596" posX="2325" posY="-1743" posZ="13.4"></vehicle> </marker> Link to comment
Prox69 Posted February 22, 2022 Share Posted February 22, 2022 (edited) get the vehicles then set the data in your script the the code down is client side , I did not try server side it has different values for third argment . https://wiki.multitheftauto.com/wiki/SetElementData --client side --to enable setElementData (vehicle, 'race.collideothers', 1 ,true) --to disabled -- setElementData (vehicle, 'race.collideothers', 0 ,true) Edited February 22, 2022 by Prox69 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