gamelaster Posted January 8, 2012 Share Posted January 8, 2012 Hello, im pressing Z key to fix, also not function . Code: function fixing ( player ) local vehicle = getPlayerOccupiedVehicle ( player ) if (vehicle) then fixVehicle ( vehicle ) outputChatBox ( "Your vehicle was fixed!", player, 0, 255, 0 ) end end addCommandHandler("fixfix",fixing) bindKey("z","down","fixfix") Link to comment
Gr0x Posted January 8, 2012 Share Posted January 8, 2012 function fixing ( ) local vehicle = getPedOccupiedVehicle ( source ) if (vehicle) then fixVehicle ( vehicle ) outputChatBox ( "Your vehicle was fixed!", source, 0, 255, 0 ) end end addCommandHandler("fixfix",fixing) bindKey("z","down","fixfix") Link to comment
gamelaster Posted January 8, 2012 Author Share Posted January 8, 2012 not helped, in the all types is not type you vehicle was fixed.... Please, test move this function to command and test. Also, im goto to console, and type fix fix. Not typing or fixing.. Link to comment
gamelaster Posted January 8, 2012 Author Share Posted January 8, 2012 Ok ok, if im remove if(vehicle) then only type you vehicle has fixed also vehicle is not fixed.. Link to comment
gamelaster Posted January 8, 2012 Author Share Posted January 8, 2012 Ok fixed. This is code for newbies: me = getLocalPlayer() function fixing ( ) local vehicle = getPedOccupiedVehicle ( me ) fixVehicle ( vehicle ) outputChatBox ( "Your vehicle was fixed!", me, 0, 255, 0 ) end addCommandHandler("fixfix",fixing) bindKey("z","down","fixfix") Link to comment
codeluaeveryday Posted January 8, 2012 Share Posted January 8, 2012 Wow gamelaster, you should have told us your script was clientsided... We couldnt help you then! Plus, your script is the really basic... Link to comment
HunT Posted January 8, 2012 Share Posted January 8, 2012 Ok fixed. This is code for newbies: Tnx 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