Animations in cars
#1

How do i script it so i can do animations in Vehicles, any time i try do it it says you cannot do animations in cars
Reply
#2

show us your script
Reply
#3

i havent scripted any animations yet, im doing that now...all i need is a code that lets me use animations in cars
Reply
#4

Quote:
Originally Posted by ekeleke
show us your script
Isn't important.

Try to search for something like this (if you're using any other script):
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
// animation command.
}
else
{
// can't use anim. cmd.
}
or:
pawn Код:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || GetPlayerState(playerid) != PLAYER_STATE_PASSENGER)
{
// animation command.
}
else
{
// can't use anim. cmd.
}
But if you're going to do commands by yourself just don't add vehicle/passenger state checks and it should work normal.
Reply
#5

oh i get it thanks, i shoulda known that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)