-
Posts
82 -
Joined
-
Last visited
Everything posted by Peti
-
This is a server script, because it has server-only functions like: https://wiki.multitheftauto.com/wiki/GetPlayerAccount https://wiki.multitheftauto.com/wiki/SetAccountData Did you try both commands after being logged in into an account? https://wiki.multitheftauto.com/wiki/Account
-
server to play MTA Battle Royale | PT-BR / EN |
Peti replied to St'Rougue's topic in Servers to play on
I was there. I think you guys have so many servers and not so many people, so it is hard to find a game. Also, the main chat is in Portuguese, I couldn't understand nothing nor find a comment in English. If you reduce the number of servers and make two different chats according to the languages presented in this thread, the experience will improve. -
https://forum.multitheftauto.com/topic/113331-skins-save-system-resource-script-need-help/?tab=comments#comment-938686 getPedSkin is deprecated, please use this: https://wiki.multitheftauto.com/wiki/GetElementModel And setPedSkin is deprecated too, use this instead: https://wiki.multitheftauto.com/wiki/SetElementModel If you want commands, you should know how addCommandHandler works: https://wiki.multitheftauto.com/wiki/AddCommandHandler function onPlayerSpawn ( player ) local playeraccount = getPlayerAccount ( player ) if ( playeraccount ) then local playerskin = getAccountData ( playeraccount, "skin1" ) if ( playerskin ) then setElementModel ( source, playerskin ) end end end addCommandHandler('save', onPlayerSpawn, false, false) function onPlayerWasted ( player ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getElementModel ( source ) setAccountData ( playeraccount, "skin1", playerskin ) end end addCommandHandler('load', onPlayerWasted, false, false)
-
¿Un acuerdo de confidencialidad en un trabajo no pago?
-
https://wiki.multitheftauto.com/wiki/GetPedOccupiedVehicle https://wiki.multitheftauto.com/wiki/SetPlayerHudComponentVisible
-
Which errors are you getting? Show me your code to see what is happening.
-
yikes
-
En la wiki está todo lo que buscas: https://wiki.multitheftauto.com/wiki/Table https://wiki.multitheftauto.com/wiki/CreateBlip https://wiki.multitheftauto.com/wiki/CreateMarker onClientMarkerHit https://wiki.multitheftauto.com/wiki/Element_tree
- 2 replies
-
- ayuda
- playerblips
-
(and 2 more)
Tagged with:
-
Serverside code is kinda messy, yes. addEvent( "qd", true ) addEventHandler( "qd", root, function() elevatordoor = createObject ( 2634, 267.70001, 1880, 18, 0, 0, 270 ) moveObject ( elevatordoor, 3000, -2017, 158.79998779297, 20.39999961853 ) end, true) That should work. You can't use marker functions without markers. Your markers are on client, so you have to use them there.
-
https://forum.multitheftauto.com/topic/99346-solved-cc23-error-while-connecting-to-one-server/
-
I Need Help For This Probleme
Peti replied to MinightDayZ's topic in General Multi Language discussion
https://forum.multitheftauto.com/topic/90196-cl33-error-mtasa/?tab=comments#comment-818831 -
You can do it by yourself, you only need this: setTimer( function() if getResourceState(yourResource) == "running" then restartResource(yourResource) end end, 600000, 0) But I don't think this is very optimized if you ask me.
-
To make an inmortal ped, you need to cancel the event 'onClientPedDamage': function inmortal() cancelEvent() end addEventHandler("onClientPedDamage", yourPed, inmortal)
-
Warnings I get Also, I can't do nothing. I mean, I listen to the music and I see the screen, but no character whatsoever.
-
I've been there. The server needs adjustments and bring something new to the table, because it has the same scripts that every RPG right now.
-
Why would you be such an as*hole? Good job, I'll take a look.
-
If you try what thisdp said, what can you see?
-
I love this kinda scripts, how many hours did you spend on it?
-
I don't really understand what is your problem. Can you use google translator, please? BTW, this could help:
-
Cuando intento entrar a MTA, no hace nada.
Peti replied to lucjelol's topic in Ayuda relacionada al cliente/servidor
El log sería una gran ayuda para analizar mejor tu situación. \\MTA San Andreas 1.5\MTA\logs\logfile.txt -
It looks nice, but you can't sell models that don't belong to you.
-
Why 'hentai'? Also, I can't see any picture.
-
No, It's ok. Have you tried debugging your 'getAccountFromName'? Maybe put an outputChatBox and see if the function returns an acc. function getMailFromAccount(accName) local accName = guiGetText(acceditbox) outputChatBox(accName) triggerServerEvent("getMail", resourceRoot, localPlayer, accName) end Something like this. It is for testing purposes. If you don't get any account, check if the account exists. EDIT: If I'm correct, here you are passing a parameter to the function: triggerClientEvent(client, "setMailOnLable", client, eMail) but here you haven't defined anything: function getMailID(eMail) -- here if (eMail) then guiSetText(resultmail, "Result: "..eMail..".") end addEvent("setMailOnLable", true) addEventHandler("setMailOnLable", localPlayer, getMailID) end Also, try this: function getMailID(eMail) -- here if (eMail) then guiSetText(resultmail, "Result: "..eMail..".") end end addEvent("setMailOnLable", true) addEventHandler("setMailOnLable", localPlayer, getMailID)
-
We are going to need the full code in order to give you a proper answer. I don't see 'getAccount' nowhere.
-
If you have any respect for creators, don't use the script at all. Or you can try asking for permission.