Jump to content

need help with setPlayerCanBeKnockedOffBike


heavy air

Recommended Posts

does that mean i have to set it as type=client

or i dont need to set it as a function

sorry if dumb question still learning :oops:

i know it looks really simple but ive tried

function cantfall ( player )

setPlayerCanBeKnockedOffBike = false

and

function cantfall ( player )

local player = getLocalPlayer

setPlayerCanBeKnockedOffBike ( player, false )

and a few others but none seem to work :oops:

Edited by Guest
Link to comment
SWEET THANX

ill give it a go :D

EDIT : not sure how to make it a client script

i have made it a resource on its own and set it as type="client"

mta says resource loaded but with errors

sorry to be a pain but ive only just started scripting so im still kinda dumb :oops:

maybe some of the other codes in the file are server only functions.

try making a new file like "client_side.lua" and define that in the meta file and set it as type="client" while the other is server.

Link to comment

this is really wierd :roll:

i have tried it as 2 seperate scripts one server and one client

then

i tried adding the function to my main script and made a client script

then

i tried every different form of syntax i could think of both in the main script and as a seperate one

then

i tried to make it a console command

now

i dont know what else to try it looks so simple on the wiki but just cant stay on the bike

i even wondered if it was something silly like one command for bikes and one for motorcycles but no

ANYBODY OUT THERE HAVE ANY IDEAS this ones doing my head in :?:roll:

Link to comment

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...