Jump to content

3 Qeustions..


Mat101

Recommended Posts

Posted

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 (:

  • Moderators
Posted

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

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

Explain a bit more?

Posted

No need to explain more.

Need to try it by yourself.

Check wiki pages for Colshape, Collision shape functions and onElementColShapeHit event - they are full of descriptions, examples, etc.

And something for point #3. - Why don't just just search in wiki?

Like that:

https://wiki.multitheftauto.com/index.ph ... cked&go=Go

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

Ok Ok :P i got some to work. But as i said i will ask maybe more questions ..

How to make if someone left the server it says ".. Has left The server"

Posted

lol?

type "start joinquit" in server console, or login as admin and do the same in game console ...

he cant do that :P

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

why copy? just start resource

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