Jump to content

[solved] onVehicleInWater or something like that


dzek (varez)

Recommended Posts

Posted (edited)

im looking for event triggered when ped/vehicle gets in water..

is there something like that (cant found in wiki) or should i write it by myself using onClientFrameRender and isElementInWater ?

Edited by Guest

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 (edited)

im looking for event triggered when ped/vehicle gets in water..

is there something like that (cant found in wiki) or should i write it by myself using onClientFrameRender and isElementInWater ?

Edited by Guest

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
im looking for event triggered when ped/vehicle gets in water..

is there something like that (cant found in wiki) or should i write it by myself using onClientFrameRender and isElementInWater ?

There isn't any, I've checked the whole wiki but I couldn't find any, I guess you'll just have to write one.

Posted
im looking for event triggered when ped/vehicle gets in water..

is there something like that (cant found in wiki) or should i write it by myself using onClientFrameRender and isElementInWater ?

There isn't any, I've checked the whole wiki but I couldn't find any, I guess you'll just have to write one.

Posted

There's no such event. You can check periodically with isElementInWater and setTimer. (I wouldn't recommend onClientRender - in this case it's just.. overkill.)

I've posted a request for the event (as it'd be more useful) here.

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted

There's no such event. You can check periodically with isElementInWater and setTimer. (I wouldn't recommend onClientRender - in this case it's just.. overkill.)

I've posted a request for the event (as it'd be more useful) here.

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

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