Jump to content
  • 0

code ?


MOGA672002

Question

function select()
	local account = getPlayerAccount(source)
	local x, y, z, rot = 2700.04272, -2327.13013, 13.33250, 269
	local skin = 29
	local team = getTeamFromName("Unemployed")
	setAccountData(account, "WWRPG.playerX", x)
	setAccountData(account, "WWRPG.playerY", y)
	setAccountData(account, "WWRPG.playerZ", z)
	setAccountData(account, "WWRPG.playerRot", rot)
	setAccountData(account, "WWRPG.playerSkin", skin)
	setAccountData(account, "WWRPG.playerInt", 0)
	setAccountData(account, "WWRPG.playerDim", 0)
	setAccountData(account, "WWRPG.playerTeam", "Unemployed")
	fadeCamera(source, true)
	spawnPlayer(source, x, y, z, rot, skin, 0, team)
	local dimension = getFreeDimension()
	cleanNotUsedBoats()
	if isElement(boats[source]) then destroyElement(boats[source]) end
	boats[source] = createVehicle(493, 2731.7016601563, -2322.798828125, 2, 0, 0, 359)
	setElementFrozen(boats[source], true)
	setElementDimension(boats[source], dimension)
	setElementDimension(source, dimension)
	triggerClientEvent(source,"startIntro",source,dimension)
end

https://imgur.com/a/Qvpf9WQ

what the problem with this line
    spawnPlayer(source, x, y, z, rot, skin, 0, team)

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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