ViRuZGamiing Posted December 20, 2013 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. "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
Moderators IIYAMA Posted December 20, 2013 Moderators Posted December 20, 2013 setElementFrozen Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
ViRuZGamiing Posted December 20, 2013 Author 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? "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
ViRuZGamiing Posted December 20, 2013 Author 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 "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
K4stic Posted December 20, 2013 Posted December 20, 2013 function createCar () car = createVehicle (.....) end Just remove the local to do it there is code ^ Giving a Fuck? Nope, That isn't in My Skill Set
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