Jump to content

[Q] Singleplayer Passenger


Recommended Posts

I tired this.. not work now biggrin.gif

may someone help me?

 

 

function GetCoords() PushInt(PLAYER_CHAR) PushFloat(0.0) PushFloat(0.0) PushFloat(0.0) PushVarPtr() PushVarPtr() PushVarPtr() CallNative("GET_OFFSET_FROM_CHAR_IN_WORLD_COORDS") X = GetFloatParam(4) Y = GetFloatParam(5) Z = GetFloatParam(6) endfunction passen() GetCoords() PushFloat(X) PushFloat(Y) PushFloat(Z) PushFloat(15.0) PushInt(0) PushVarPtr() CallSpecNative("GET_CLOSEST_CAR") CAR_HANDLE = GetIntParam(5) PushVarPtr()CallSpecNative("OPEN_SEQUENCE_TASK")task = GetIntParam(0) PushInt(0) 	PushInt(CAR_HANDLE) PushInt(-1)  	 	PushInt(PLAYER_CHAR) 	CallSpecNative("TASK_ENTER_CAR_AS_PASSENGER") 	 	PushInt(task) 	CallSpecNative("CLOSE_SEQUENCE_TASK") 	 	PushInt(PLAYER_CHAR) 	PushInt(task) 	CallSpecNative("TASK_PERFORM_SEQUENCE") 	 	PushInt(task)  	 	CallSpecNative("CLEAR_SEQUENCE_TASK") 	 Wait(3000)end

 

Link to comment
https://gtaforums.com/topic/392717-q-singleplayer-passenger/#findComment-1058885608
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.