Killer... Posted October 31, 2014 Share Posted October 31, 2014 Hello, i need to change player spawn, beacuse it spawn at San Fierro Train Station, How i can change that? And how i can do a mechanics faction? Whit repair,color,tunning commands. Link to comment
Castillo Posted October 31, 2014 Share Posted October 31, 2014 I found this piece of code in "players/main.lua": function createCharacter( player, name, skin ) if player and p[ player ].userID then if exports.sql:query_assoc_single( "SELECT characterID FROM characters WHERE characterName = '%s'", name ) then triggerClientEvent( player, "players:characterCreationResult", player, 1 ) elseif exports.sql:query_free( "INSERT INTO characters (characterName, userID, x, y, z, interior, dimension, skin, rotation) VALUES ('%s', " .. p[ player ].userID .. ", -1984.5, 138, 27.7, 0, 0, " .. tonumber( skin ) .. ", 270)", name ) then updateCharacters( player ) triggerClientEvent( player, "players:characterCreationResult", player, 0 ) exports.server:message( "%C04[" .. getID( player ) .. "]%C %B" .. p[ player ].username .. "%B created character %B" .. name .. "%B." ) return true end end return false end -1984.5, 138, 27.7 That should be the position, try changing it. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now