xScatta Posted August 18, 2013 Share Posted August 18, 2013 Hey guys. I have an problem because i want to call function with function like that function lol() if getVehicleController(blabla)=="player" -- this no matter -- then -- and there i want to call another function in the same script.lua-- my code carm = createVehicle(579,1703.19,1039.09,10.89,0,0,90) function car() vehiclem = getVehicleName(carm) vehiclec = getVehicleController(carm) if vehiclem=="huntley" then outputChatBox("Teraz zawiez to auto do miejsca oznaczonego na mapie literka T", vehiclec) createBlip(1235.79,212.88,19.55,255,0,0,255,0,99999.0,vehiclec) end end addEventHandler("onClientPlayerVehicleEnter",carm,car) function check() if vehiclec=="player" then --HERE I WANT TO CALL car() function!-- end end Please fast post guys Link to comment
Castillo Posted August 18, 2013 Share Posted August 18, 2013 That doesn't make any sense, what are you trying to achieve...? Link to comment
xScatta Posted August 18, 2013 Author Share Posted August 18, 2013 Oh okay i will do it easier. I want to do something like this carm = createVehicle(579,1703.19,1039.09,10.89,0,0,90) function car() vehiclem = getVehicleName(carm) vehiclec = getVehicleController(carm) if vehiclem=="huntley" then outputChatBox("Teraz zawiez to auto do miejsca oznaczonego na mapie literka T", vehiclec) createBlip(1235.79,212.88,19.55,255,0,0,255,0,99999.0,vehiclec) end end addEventHandler("onClientPlayerVehicleEnter",carm,car) function check() if vehiclec=="player" then end end in the check function i want to make after "then" in "if vehiclec=="player" then" line a code which will run "car()" function. 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