Jump to content

Peti

Members
  • Posts

    82
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

1,066 profile views

Peti's Achievements

Transformer

Transformer (11/54)

15

Reputation

  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.
×
×
  • Create New...