Well there is an event called "onPlayerLogin" : https://wiki.multitheftauto.com/wiki/OnPlayerLogin
But it's only server side , so if you want to draw a text , etc .... you will have to use triggerClientEvent to call the function on the client side.
Well there is a reasone of why the player can't play while downloading ( actualy there are more ... ). But one of them is :
the download will take the bandwidth, if the player has a bad internet connection then he will have a very nasty lag. Anyway it is possible check this out :
https://community.multitheftauto.com/in ... ls&id=3379
"0xAARRGGBB" is not a color , it's a default form of hex color's. AA = alpha , RR = red , GG = green , BB = blue.
So if you want white color you use : 0xFFFFFFFF , or tocolor(255,255,255,255)
For more hex color codes check this out : http://www.color-hex.com/
Well you need to use "sensor" check's.
isVehicleOnGround -- if it's false you are in the air so you stop/ change the Velocity value
onClientVehicleCollision
onClientVehicleDamage -- this 2 can be used to check if you hit something ( a car in front of you ) then again change Velocity value to make that resistance effect , etc ...
local lastDmg = 0;
addEventHandler("onClientPlayerDamage",localPlayer, function()
lastDmg = getTickCount()
end
)
setTimer(
function ()
if lastDmg+5000 < getTickCount() and getElementHealth(localPlayer) < 100 then
setElementHealth ( localPlayer, ( getElementHealth ( localPlayer ) + 15 ) )
end
end,5000,0)
end
function setCurrentChannel(id)
if (id < 0) or (id > #radios) then return false; end;
outputChatBox("setting done")
channelID = id;
for i,v in ipairs (radios) do
if v[1] == id then
actual = v[2]
suivant = v[i+1][2] -- next row data 2
previous = v[i-1][2] -- prev row data 2
outputChatBox(v[2])
end
return true;
end
end
In meta.xml write "image.png" in the script write "Image.png" and try it on Windows you will see that will work without any problem. When you will try to run it on Linux you will see in debug that can't find image path.
So yes it changes thing's.
Your local host server was Windows server i am prity shure , and the real server is running under Linux. Windows is not Linux you could start learning what is different then you will know why this kind of thing's happen.
As a small example Windows dosent care about upper case ( on windows "Mta" and "mta" is the same ) but on Linux there are not the same becouse Linux care about upper case.
well that should be in the same spot ( you used relativ calculation ) , the problem would be or the text size ( i doubt that it move's very much the text but it could move it a bit).
My best guest is the display aspect ration , you mabe use 16:9 and your friend 4:3 or other one. Try to use
" dxSetAspectRatioAdjustmentEnabled "
Well it's kinda possible if the 2 car model's are not so different. So if you wanna only add a spoiler and the cop light's you can check this out.
https://wiki.multitheftauto.com/wiki/SetVehicleVariant
https://wiki.multitheftauto.com/wiki/Vehicle_variants
It's the same thing that single player uses for car customization.
Well it say's clear that "thePlayer" argument it's a marker / vehicle and not a Ped / Player.
Post the full code , the error is in the line where you call speedCam() function.
Well there is setTimer but the minimum time is 50 mili secs not even close to 3.
After all what is so hard to calculate ? You take the current FPS let's say 45 FPS , that is 1 sec (1000 mil sec ) that mean's that the smallest possible trigger is 1000/45 = 22 mili sec, for 3 mili sec you would need 1000/3 = 333 FPS that is not possbile , at 100 FPS (max) you can do a 1000/100 = 10 mili sec trigger.