PDMTA Posted June 8, 2016 Posted June 8, 2016 Script spawn_client.lua al comienzo me andubo bien pero luego de reconectar unas 4 veces se bugueo, algun error.? addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) local team = getElementData ( localPlayer, "team" ) if ( not team or not getTeamFromName ( team ) ) then local Aleatorio = math.random(1,3) if (Aleatorio == 1) then setCameraMatrix(2092.01, 1948, 14.051, 2080.36, 1900.86, 16.98) elseif(Aleatorio == 2) then setCameraMatrix( -1382.57, 680.96, 84.00, -1639.29, 746.37, 79.68) elseif(Aleatorio == 3) then setCameraMatrix(1574.7861328125, -1603.6557617188, 64.496025085449, 1436.1011962891, -1683.4934082031, 13.546875) setTimer ( triggerEvent, 1000, 1, "spawnSystem:setSpawnVisible", localPlayer, true ) for _, skin in ipairs ( getValidPedModels ( ) ) do skinsTable [ skin ] = true end end end end )
Castillo Posted June 8, 2016 Posted June 8, 2016 De donde sacaste mi sistema de spawn? ese recurso no es publico.
Castillo Posted June 8, 2016 Posted June 8, 2016 addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) local team = getElementData ( localPlayer, "team" ) if ( not team or not getTeamFromName ( team ) ) then local Aleatorio = math.random(1,3) if (Aleatorio == 1) then setCameraMatrix(2092.01, 1948, 14.051, 2080.36, 1900.86, 16.98) elseif(Aleatorio == 2) then setCameraMatrix( -1382.57, 680.96, 84.00, -1639.29, 746.37, 79.68) elseif(Aleatorio == 3) then setCameraMatrix(1574.7861328125, -1603.6557617188, 64.496025085449, 1436.1011962891, -1683.4934082031, 13.546875) end setTimer ( triggerEvent, 1000, 1, "spawnSystem:setSpawnVisible", localPlayer, true ) end for _, skin in ipairs ( getValidPedModels ( ) ) do skinsTable [ skin ] = true end end )
Recommended Posts