Killer... Posted January 18, 2015 Share Posted January 18, 2015 Buenas a todos, hago este post ya que necesito ayuda con el script del panel mecánico. Y aunque sete la zona del taller me sigue diciendo que no estoy en el taller./ Hello Everybody, i do this topic, because i need some help whit a mechanic panel, and if i set the mechanic zone it tells me that im not in the mechanic zone. Meca = createColCuboid( 398.22, -2339.18, 7.9, 0, 0, 0) Meca2 = createColCuboid(398.22, -2339.18, 7.9, 0, 0, 0) Meca3 = createColCuboid(398.22, -2339.18, 7.9, 0, 0, 0) jobs ={ [498] = true, [431] = true, [574] = true, [420] = true } addEventHandler( "onResourceStart", resourceRoot, function() for key, value in ipairs( getElementsByType( "player" ) ) do bindKey( value, "F4", "down", "guimecanico" ) end end) addEventHandler( "onPlayerJoin", root, function( ) bindKey( source, "F4", "down", "guimecanico" ) end ) addCommandHandler( { "guimecanico", "guicasos" }, function(player) if exports.factions:isPlayerInFaction( player, 2 ) or exports.factions:isPlayerInFaction( player, 2 ) then if isElementWithinColShape ( player, Meca ) or isElementWithinColShape ( player, Meca2 ) then triggerClientEvent( player, "gui:meca", player ) else outputChatBox("No estás en el taller.", player, 255, 0, 0) end elseif exports.factions:isPlayerInFaction( player, 1 ) then local result = exports.sql:query_assoc( "SELECT * FROM FCPD_casos ORDER BY ID ASC" ) triggerClientEvent( player, "gui:FCPD", player, result ) end end) Link to comment
Platin Posted January 19, 2015 Share Posted January 19, 2015 Le has puesto al Meca, Meca2 y Meca3 que tenga el tamaño 0, 0, 0 Modificalos. EJ: Meca = createColCuboid( 398.22, -2339.18, 7.9, 20, 21, 22) 20 = Ancho 21 = Largo 22 = Altura PD: Te recomiendo mejor postear en el subforo en español. viewforum.php?f=122 Link to comment
Enkanet Posted January 19, 2015 Share Posted January 19, 2015 Why don't you use Spanish board? viewforum.php?f=122 Link to comment
Platin Posted January 20, 2015 Share Posted January 20, 2015 Why don't you use Spanish board? viewforum.php?f=122 He's new I see. I tell him that, no problem. 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