So i will need your help.
i had change the script. now i can spawn in SF.
addEventHandler("onResourceStart", resourceRoot,
function()
for i,player in ipairs(getElementsByType("player")) do
spawn(player)
end
end
)
function spawn(player)
if not isElement(player) then return end
repeat until spawnPlayer ( player, -XXXX+math.random(1,5), XXXX+math.random(5,9), 10, 90, math.random(9,288) )
fadeCamera(player, true)
setCameraTarget(player, player)
end
addEventHandler("onPlayerJoin", root,
function()
spawn(source)
end
)
how can i make it so >if player spawn the > player alwas hat the skin "0"
thanks for your response!
all the best from germany