Jump to content

How to change spawn skin?


Vicker

Recommended Posts

There are 2 easy ways to do it; in meta.xml or via admin panel.

1. In meta.xml of race find name="*skins". Change value (by default cj) to your skin ID.

OR

2. Open admin panel (P key by defaul), select "Resources" tab and double click "race" resource. Find "skins" in the list of settings and change it.

Link to comment

as a quick solution:

open meta.xml of race resource and add this setting:

<setting name="*adminskin" value="197"
friendlyname="Admin skin"
group="_Advanced"
accept="0-288"
desc="Setting of skin to be used by admins."
/>

then open race_server.lua and change this (somewhere around line 438, mine is edited):

if g_MapOptions.skins == 'cj' then
spawnPlayer(player, x + 4, y, z, 0, 0)

to this:

if isPlayerInACLGroup(player, g_GameOptions.admingroup) then
spawnPlayer(player, x + 4, y, z, 0, get("adminskin"))
elseif g_MapOptions.skins == 'cj' then
spawnPlayer(player, x + 4, y, z, 0, 0)

now in race resource settings you can set skin ID to use for players whose groups listed in race "admin group" setting.

just dont forget that not all 0-288 skins are working (since its a quick solution, i havent added any checks there :D)

https://wiki.multitheftauto.com/wiki/Character_Skins

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...