ViRuZGamiing Posted December 20, 2013 Share Posted December 20, 2013 Hi, I want to create a Showroom car but i'm afraid that people will push the car so how can I make it notMovable? Thanks in advance. Link to comment
Moderators IIYAMA Posted December 20, 2013 Moderators Share Posted December 20, 2013 setElementFrozen Link to comment
ViRuZGamiing Posted December 20, 2013 Author Share Posted December 20, 2013 Yup works, Now I have local driver = getVehicleOccupant ( source ) if ( driver ) then but the source is created in another function do I need to re-create it in this function to work? Link to comment
ViRuZGamiing Posted December 20, 2013 Author Share Posted December 20, 2013 Example: I create my car in 1 function and want to call it in another function function createCar () local car = createVehicle (.....) end Then another function where i want to call 'car' back... function callCar local driver = getVehicleOccupant ( car ) -- I want to call the 'car' from the other function if ( driver ) then ........ end end Link to comment
K4stic Posted December 20, 2013 Share Posted December 20, 2013 function createCar () car = createVehicle (.....) end Just remove the local to do it there is code ^ 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