Jump to content

Vehicle Cancel and ped help


Tockra

Recommended Posts

Posted

Hello Guys,

i have got 3 questions...

1. I binded a function on enter, which run when the player is on a special point. Now i want not that the player enter an vehicle, when he is on this special position. How can i cancel it?

2. How can i let a bot drive an vehicle in a loop ab special route ?

Must i make this with waypoints and let the Bots drive to the waypoints? How can i make it?

3. I want that the courser will show when i press alt GR down and it should be unshown when "press" altGR up

here is my code (its client site) but it dont run : http://pastebay.com/98796

h32yhix1ossu.png
Posted

1:

addEventHandler("onClientVehicleStartEnter", getLocalPlayer(), function()
if (somethingToCheck) then -- something to check like : getting player pos, then isInsideRadarArea [you have to create radar area fisrt - look at wiki for more info], OR IsElementWithinColShape [you have to create colshape first], OR IsElementWithinMarker ....
cancelEvent()
end
end)

2:

peds/bots its more artificial intelligence than scripting.. if you dont know how to make your others problem, im pretty sure you cant do bot .. learn learn learn - https://wiki.multitheftauto.com/

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

dude!

there's no fuction like: driveAround or createWayPoint, or anything like that!

As i said - you don't know basics of lua, and you want to make the hardest things..

all drivings are done by:

setPedControlState

you have to make own waypoints system, then check if ped is on its waypoint, if not turn left/right or slow down or... etc etc.. you have to check a lot of things and controll it all only with setPedControlState

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
dude!

there's no fuction like: driveAround or createWayPoint, or anything like that!

As i said - you don't know basics of lua, and you want to make the hardest things..

all drivings are done by:

setPedControlState

you have to make own waypoints system, then check if ped is on its waypoint, if not turn left/right or slow down or... etc etc.. you have to check a lot of things and controll it all only with setPedControlState

When you now say which commands of setPedControlState i need to use ...

h32yhix1ossu.png
Posted

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

"accelerate" -> suprise ?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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