codeluaeveryday Posted May 9, 2013 Share Posted May 9, 2013 So i have come across a problem on the client side with: fakeCar = createVehicle(vehModel, 0, 0, 0) fakePed = createPed(263, 0, 0, 0, 0, false) or outputChatBox('False') warpPedIntoVehicle(fakePed, fakeCar) setCameraTarget(fakePed) setCameraTarget says that there is an expected number at argument one, well I assume this is bugging with the other client side option. fakePed variable also isn't working in an other function, it isn't local so it should work. So it creates the ped and the vehicle and puts the ped in the car, but I can't watch the ped, and I also cannot use: setPedControlState(fakePed, 'accelerate', vehAccelerate) in the other function. I am almost done with this code, and before you ask vehAccelerate is defined and is correct. Link to comment
50p Posted May 9, 2013 Share Posted May 9, 2013 This function allows you to set a player's camera to follow other elements instead. Currently supported element type is:Players That's probably why it shows you the warning message. Remember, ALL players are peds but NOT ALL peds are players. You should use the other variant of the function and if it needs to follow the ped then you'll need to use onClientPreRender. Link to comment
qaisjp Posted May 9, 2013 Share Posted May 9, 2013 MTA should implement peds as peds, players as users, and assigning peds to users. but that's my opinion. LIke what 50p said, you'll need to code a custom camera. Link to comment
codeluaeveryday Posted May 9, 2013 Author Share Posted May 9, 2013 Oh shit, I believe your right... The problem is I am actually following a vehicle, I am unsure what it will look like, but yeah Ill try onClientPreRender. but setPedControlState nevers works either. 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