heavy air Posted February 15, 2008 Share Posted February 15, 2008 the mta wiki just doesnt seem to help with this one and i cant figure out the syntax i just need an example of how to use it i have tried a number of different ways but thet dont work ANY HELP GREATLY APPRECIATED Thanx for l king Link to comment
eAi Posted February 15, 2008 Share Posted February 15, 2008 http://development.mtasa.com/index.php? ... kedOffBike Although not fully documented, it's not exactly complex. Specify a player then 'true' or 'false'. True specifying that they can be knocked off, false that they can't. Link to comment
tma Posted February 15, 2008 Share Posted February 15, 2008 It's client-only like : setPlayerCanBeKnockedOffBike(getLocalPlayer(),false) Link to comment
heavy air Posted February 15, 2008 Author Share Posted February 15, 2008 (edited) does that mean i have to set it as type=client or i dont need to set it as a function sorry if dumb question still learning i know it looks really simple but ive tried function cantfall ( player ) setPlayerCanBeKnockedOffBike = false and function cantfall ( player ) local player = getLocalPlayer setPlayerCanBeKnockedOffBike ( player, false ) and a few others but none seem to work Edited February 15, 2008 by Guest Link to comment
tma Posted February 15, 2008 Share Posted February 15, 2008 You just need that line in some client-executed code - where is up to you. Link to comment
heavy air Posted February 15, 2008 Author Share Posted February 15, 2008 SWEET THANX ill give it a go EDIT : not sure how to make it a client script i have made it a resource on its own and set it as type="client" mta says resource loaded but with errors sorry to be a pain but ive only just started scripting so im still kinda dumb Link to comment
Jumba' Posted February 15, 2008 Share Posted February 15, 2008 SWEET THANXill give it a go EDIT : not sure how to make it a client script i have made it a resource on its own and set it as type="client" mta says resource loaded but with errors sorry to be a pain but ive only just started scripting so im still kinda dumb maybe some of the other codes in the file are server only functions. try making a new file like "client_side.lua" and define that in the meta file and set it as type="client" while the other is server. Link to comment
heavy air Posted February 15, 2008 Author Share Posted February 15, 2008 this is really wierd i have tried it as 2 seperate scripts one server and one client then i tried adding the function to my main script and made a client script then i tried every different form of syntax i could think of both in the main script and as a seperate one then i tried to make it a console command now i dont know what else to try it looks so simple on the wiki but just cant stay on the bike i even wondered if it was something silly like one command for bikes and one for motorcycles but no ANYBODY OUT THERE HAVE ANY IDEAS this ones doing my head in Link to comment
heavy air Posted February 16, 2008 Author Share Posted February 16, 2008 have finally got it u were right TMA dont know what i was doin just put the line in a script by itself and run it as client through the meta sweet 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