-
Posts
419 -
Joined
-
Last visited
-
Days Won
1
Everything posted by nikitafloy
-
[LF] Lua and Web Developers (RP server) [Unpaid*]
nikitafloy replied to MasterWayZ's topic in Looking for staff
Sometimes I feel like I've gone to hell reading such proposals. -
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
-
[HELP] Create weapon on client side and attach it on server sided vehicle
nikitafloy replied to BenceDev's topic in Scripting
several reasons, use setTimer with triggerClientEvent then -
Предлагать оплату после завершения - плохая идея
-
You seem to imply that setElementVisibleTo destroys the element, not hides it
-
exports: Call to non running server resource
nikitafloy replied to Heshan_Shalinda_eUnlock's topic in Scripting
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
-
[LF] Any-level scripter for a server [Non-paid]
nikitafloy replied to SanMartin's topic in Looking for staff
A business in which you guarantee a large profit, but do not want to invest... -
Should be: setElementData(localPlayer, "zaladowany", false) In onClientResourceStop event
- 1 reply
-
- 1
-
check arguments in use your function isCursorOnElement
-
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 reply
-
- 1
-
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
-
[HELP] show player account name instead nickname in server
nikitafloy replied to SinaAmp's topic in Scripting
@sinakh i dont know ur mta mod U need to find script which use 'setPlayerName' function and remove this Example: setPlayerName(player, 'nickname' .. math.random(99999)) -
[HELP] show player account name instead nickname in server
nikitafloy replied to SinaAmp's topic in Scripting
"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 that If 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) -
[HELP] show player account name instead nickname in server
nikitafloy replied to SinaAmp's topic in Scripting
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) -
You need to create custom smoke Check it here: https://github.com/alcoholiclobster/drift-paradise-mta https://github.com/alcoholiclobster/drift-paradise-mta/blob/1bc6b1bf6520b1818c54b7fb9b75f97f9b290e69/[core]/dpVehicles/client/tyres_smoke.lua
- 1 reply
-
- 1
-
what do u mean?
-
base64-image.de
-
take here: https://github.com/alcoholiclobster/drift-paradise-mta/blob/1bc6b1bf6520b1818c54b7fb9b75f97f9b290e69/[core]/dpWheelsManager/assets/shaders/wheel.fx
- 1 reply
-
- 1
-
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)