Jump to content

please help


liamknight24

Recommended Posts

hello again MTA i have a little problem with skin saving it does save it to the account but when the player logs in he is just cj??

so the onplayerquit works fine here is the onplayerlogin if it helps and i have allready looked on the wiki thanks for the advice:

function onPlayerlogin ( )

local playeraccount = getPlayerAccount ( source )

if ( playeraccount ) then

local playerSkin = getAccountData ( playeraccount, "Skin" )

if ( playerSkin ) then

setPlayerSkinID ( source, playerSkin )

could this be a problem with the logingui im not too shure becouse i did check the resource and it dosent have it in??

thanks for any help.

Link to comment
setPlayerSkinID? Try setElementModel instead.

so would it be like this ??:

function onPlayerlogin ( )

local playeraccount = getPlayerAccount ( source )

if ( playeraccount ) then

local elementmodel = getAccountData ( playeraccount, "Skin" )

if ( playerSkin ) then

setelementmodel ( source, playerSkin )

and this should work ??

but i used basicly the same layout for the skin to save and checked the account folder and it did actualy save it??? but still wont load it

thanks for the help mate

Link to comment
setPlayerSkinID? Try setElementModel instead.

so would it be like this ??:

function onPlayerlogin ( )

local playeraccount = getPlayerAccount ( source )

if ( playeraccount ) then

local elementmodel = getAccountData ( playeraccount, "Skin" )

if ( playerSkin ) then

setelementmodel ( source, playerSkin )

and this should work ??

but i used basicly the same layout for the skin to save and checked the account folder and it did actualy save it??? but still wont load it

thanks for the help mate

Scripting seems to be hard for you and your first scripting/programming languages... I can see you losing more nerves on scripting than your life complications.

You will learn everything you need to know to start scripting for MTA: https://forum.multitheftauto.com/viewtop ... 91&t=25032

It may take you a day or 2 just to understand scripting concept but it's worth it.

Tip of the day for you:

setelementmodel is not the same as setElementModel.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...