Jump to content

2k2k

Members
  • Posts

    7
  • Joined

  • Last visited

Details

  • Gang
    nunca

2k2k's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. I need a script to siwtch weapons with keys 1 2 3 4 5 6 ... Please link me a script or at least some functions I need to use for a script ty
  2. I meant what script does it by default I just started scripting and I cant find the thing that gives you random skin on join Basicly I want to disable it.
  3. What script does random skin on join thing and in which file is it?
  4. Its working but where will the players skin be saved on the serrver or on the client?
  5. I found a code on MTA wiki basicly for storing money I remade it to store skins this is my first script I do atend a computer school so by the code it looks pretty logical if you got any fixes bugs you see please lmk. function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( Acc ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then local playerskin = getElementModel ( Skin ) setAccountData ( playeraccount, "player.skin", playerskin ) end end function onPlayerLogin (_, playeraccount ) if ( playeraccount ) then local playerskin = getAccountData ( playeraccount, "player.skin" ) if ( playerskin ) then setElementModel ( Acc, Skin ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin )
  6. I am stil learning lua as we speak and I kinda understand how to do this get get player acc > get his skin > save it to his acc. local playeraccount = getPlayerAccount ( source ) What do I need to put in the source is that where its gona put the account name? if so do I need to add something like accounts.txt?
  7. Any scripts that "Save skin when disconnecting > Reconnecting" I got it to save when you get killed but when I join the server I get a random skin any scripts that set you a speciffic skiN?
×
×
  • Create New...