Jump to content

Sit in the hiker to the vehicle


holuzs

Recommended Posts

Posted (edited)
function pickedUpTheHiker()
    local veh = getPedOccupiedVehicle(localPlayer)
    setPedAnimation(hiker)
    setPedControlState(hiker, "enter_passenger", true)
end

The ped stop the anim, but don't in into the nearest vehicle.

Edited by holuzs
Posted

Assuming the ped is really a ped, and not a player: peds cannot enter/exit vehicles the normal way.

Quote

setPedControlState

Client-only function
 

This function makes a ped or player press or release a certain control.

Note: You can't use enter_exit or enter_passenger on a ped.

You'll have to either warp him in the vehicle or script the animations sequence yourself and then warp him in the vehicle.

BHgi29I.png
  Dystopia alpha 0.75
DOWNLOAD

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...