-
Posts
419 -
Joined
-
Last visited
-
Days Won
1
Posts posted by nikitafloy
-
-
I do not know what the code do you have, but you can check length of the text and move a line.
local text = "hello, im text" if string.length(text) > 5 then local leftPartOfText = string.sub(text, 0, 5) local rightPartOfText = string.sub(text, 5) text = leftPartOfText .. "\n" .. rightPartOfText end
-
several reasons, use setTimer with triggerClientEvent then
-
Предлагать оплату после завершения - плохая идея
-
You seem to imply that setElementVisibleTo destroys the element, not hides it
-
U need this script "mta_connection"
-
I see a lot of errors in the code
Need logs /debugscript 3
And it's not a fact that the spawn event is triggered after the login event -
local times = {['10m'] = 10 * 60000, ['1h'] = 60 * 60000} -- print(times['10m'])
local timeUnits = {['m'] = 60000} -- 10m local number = string.match('10m', '%d+') local unit = string.match('10m', '%a+') -- print(tonumber(number) * timeUnits[unit])
-
Yes, use web-server and API
-
A business in which you guarantee a large profit, but do not want to invest...
-
2 hours ago, saluta said:
setElementData(plr, "zaladowany", false)
Should be:
setElementData(localPlayer, "zaladowany", false)
In onClientResourceStop event
- 1
-
check arguments in use your function isCursorOnElement
-
15 hours ago, mmb889 said:
I don't think that the models are the problem
I think it's the models problem
Disable them and check -
Use 'client' instead 'zplayer' (https://wiki.multitheftauto.com/wiki/TriggerServerEvent)
Zplayer on server-side is not an argument, its a root
- 1
-
16 hours ago, Kezoto said:
i can't enter to this vehicle
U cant enter to vehicle only if vehicle is created on client side
or you have event onVehicleEnter with cancelEvent()
-
May be u use custom nametag script
-
@sinakh i dont know ur mta mod
U need to find script which use 'setPlayerName' function and remove thisExample:
setPlayerName(player, 'nickname' .. math.random(99999))
-
1 hour ago, xLive said:
Can you please explain this?
why are you saving the account name? you can always use getAccountName?"i need ... player account name instaead nikname ... example script that can save player nickname and after login set player nickname to saved nikname"
@sinakh want thatIf he want to save nickname (player), not nickname (which was account name and was saved in accountData):
addEventHandler('onPlayerLogin', root, function(_,account) local name = getAccountData(account, 'savedName') if not name then name = getPlayerName(source) setAccountData(account, 'savedName', name) end setPlayerName(source, name) end)
- 1
-
Set account name instead nickname:
addEventHandler('onPlayerLogin', root, function(_,account) setPlayerName(source, getAccountName(account)) end)
Save account name on first server login and loading:
addEventHandler('onPlayerLogin', root, function(_,account) local accName = getAccountData(account, 'savedName') if not accName then accName = getAccountName(account) setAccountData(account, 'savedName', accName) end setPlayerName(source, accName) end)
- 1
-
-
12 minutes ago, ThePrime said:
pickup model
what do u mean?
-
-
fix it in save system
-
-
i'll be use:
local vehicle = createVehicle(...) local rotation = 0 addEventHandler('onClientRender', root, function() rotation = rotation + 0.5 -- I think, i shouldn't check and set rotation 0, if value will be > 360 setElementRotation(vehicle, 0, 0, rotation) end)
[LF] Lua and Web Developers (RP server) [Unpaid*]
in Looking for staff
Posted
Sometimes I feel like I've gone to hell reading such proposals.