Jump to content

3 Qeustions..


Mat101

Recommended Posts

Hey,

1st of all sorry if im spamming making topic's but only here i can get some help :P.

1.) How to make a moving object when a player is near the object i know it's moveObject but i dont know the function how to do when a player is near the object ??

2.)How to make pickups with effect? Not like health/armour/guns, Example a teleport??

3.) How to disable falling of bike, I know something that is Knockingofbike or .. something like that i need it properly?

Thanks mates.

I'll maybe post more questions here because i'm still new to lua (:

Link to comment
  • Discord Moderators

1) Create a Colshape a bit behind the object. For example if you want to move a gate, you'd create a Colshape behind it and use the event onElementColShapeHit, and move the gate.

2) Not so sure, but I think you can import the pickup image (should be in race resource), place it where you want, create a Colshape around it and trigger a function to teleport. There might be some other, more generic answer to this.

3) setPedCanBeKnockedOffBike

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