yes use tables + https://wiki.multitheftauto.com/wiki/OnClientWeaponFire
Every shot the guns fires, the ammo will drop in the table data.
If you don't understand tables then you can forget it.
this probably will work:
addEventHandler("onClientResourceStart", resourceRoot,
bindKey ("m", "down",
function()
showCursor( not isCursorShowing() )
end)
end)
Keys can't be set when the resource hasn't start yet, as far as I know.
local vehicleCheck = {[523]=true, [598]=true, [596]=true, [597]=true, [599]=true} -- a both the function.
-- ect
if vehicleCheck[getElementModel(clickedElement)] then
people, WTF!!!!????
I am not sure if I am the right section. (never post anything here)
But how can I upload new versions of my resources at:
https://community.multitheftauto.com/ind ... ls&id=8017 ?
Thank you,
Line 9 till 12 epic fail.
setTimer only returns the timer.
You should create a second function, a function you can call with your timers and do what you have to do. Because this doesn't make any sense.
Nothing is impossible, my server is already using a system that can do that or even more.
But I won't start talking about that because you simply can't use my property...
What you can try is using the event's to save the last vehicle etc.
https://wiki.multitheftauto.com/wiki/OnVehicleEnter
https://wiki.multitheftauto.com/wiki/OnVehicleExit
https://wiki.multitheftauto.com/wiki/OnVehicleExplode
If you really want to create something like that,
You have to create your own system to manage the data, you can choose for elementdata or using tables for quick data usage. If you can work with tables, use tables cause they are 1000+ times faster with data then elementdata.
Good luck cause you still have a long way to go for perfection.