Jump to content

Peti

Members
  • Posts

    82
  • Joined

  • Last visited

Everything posted by Peti

  1. 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
  2. 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.
  3. 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)
  4. ¿Un acuerdo de confidencialidad en un trabajo no pago?
  5. https://wiki.multitheftauto.com/wiki/GetPedOccupiedVehicle https://wiki.multitheftauto.com/wiki/SetPlayerHudComponentVisible
  6. Which errors are you getting? Show me your code to see what is happening.
  7. 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
  8. 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.
  9. Peti

    cc23 error

    https://forum.multitheftauto.com/topic/99346-solved-cc23-error-while-connecting-to-one-server/
  10. https://forum.multitheftauto.com/topic/90196-cl33-error-mtasa/?tab=comments#comment-818831
  11. 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.
  12. To make an inmortal ped, you need to cancel the event 'onClientPedDamage': function inmortal() cancelEvent() end addEventHandler("onClientPedDamage", yourPed, inmortal)
  13. 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.
  14. 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.
  15. Why would you be such an as*hole? Good job, I'll take a look.
  16. If you try what thisdp said, what can you see?
  17. I love this kinda scripts, how many hours did you spend on it?
  18. Peti

    HeadShot Bugged

    I don't really understand what is your problem. Can you use google translator, please? BTW, this could help:
  19. El log sería una gran ayuda para analizar mejor tu situación. \\MTA San Andreas 1.5\MTA\logs\logfile.txt
  20. It looks nice, but you can't sell models that don't belong to you.
  21. Why 'hentai'? Also, I can't see any picture.
  22. 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)
  23. We are going to need the full code in order to give you a proper answer. I don't see 'getAccount' nowhere.
  24. If you have any respect for creators, don't use the script at all. Or you can try asking for permission.
×
×
  • Create New...