TorNix~|nR Posted March 8, 2018 Share Posted March 8, 2018 Hey guys, please I want help, why this doesn't work local vehicle = getPedOccupiedVehicle(player) local occupants = getVehicleOccupants(vehicle) removePedFromVehicle ( occupants ) Link to comment
NeXuS™ Posted March 8, 2018 Share Posted March 8, 2018 Because removePedFromVehicle accepts players, not a table. local vehicle = getPedOccupiedVehicle(player) local occupants = getVehicleOccupants(vehicle) for i, k in pairs(occupants) do removePedFromVehicle(k) end 1 Link to comment
TorNix~|nR Posted March 8, 2018 Author Share Posted March 8, 2018 It's working, thank you so much ^ _ ^ 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