Jump to content

IndeX'

Members
  • Posts

    9
  • Joined

  • Last visited

IndeX''s Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Thank you very much for your time regards
  2. I already made replacement but the menu still appears thanks for your time
  3. still not working as it should but taking the match.random or secret, the script is activated but the menu is appearing F1
  4. syntax error, Example: Line 16: addEventHandler("onColShapeLeave" col, function( leaveElement ) --> addEventHandler("onColShapeLeave", col, function( leaveElement ) Line 25: addeEventHandler("onPlayerJoin", root, function() --> addEventHandler("onPlayerJoin", root, function() Line 26: bindKey(source, "f1", "down" openF1) --> bindKey(source, "f1", "down", openF1) --------------------------------------------------------------------------------------- The script seems to work, but not as it should: --------------------------------------------------------------------------------------- Warning: Thanks for your time
  5. Hi Citizen thanks for taking the time to make that script. There are syntax errors. With respect to the operation of the code, I could not make it work local forbiddenAreas = { --x, y, width, height {1801, -1897, 250, 250}, --example1 (needs a ',' because it's not the last) {-500, -1613, 50, 50} --example2 (no need a ',' because it's the last) } addEventHandler('onResourceStart', resourceRoot, function() for k, i in ipairs(forbiddenAreas) do local col = createColRectangle(i[1], i[2], i[3], i[4]) addEventHandler('onColShapeHit', root, function ( hitElement ) if getElementType(hitElement) ~= 'player' then return end setElementData(hitElement, 'isInForbiddenArea', true) end) addEventHandler('onColShapeLeave', root, function( leaveElement ) if getElementType(leaveElement) ~= 'player' then return end setElementData(leaveElement, 'isInForbiddenArea', false) end) end end) addEventHandler('onPlayerJoin', root, function() bindKey(source, 'f1', 'down', openF1) end) function openF1( player, preventLoop ) if preventLoop == false and getElementData(player, 'isInForbiddenArea') then executeCommandHandler('fr', player, true) end end addCommandHandler('fr', openF1)
  6. Sure, I have a freeroam server, and I want to do is that in certain areas I choose coordinate vehicles can not choose from the menu of F1. ( sorry for my english )
  7. Hello, my question is this. I want to know if there is any resource that blocks auto respawn in certain "zones". For example: In CJ that people can not choose from the menu of auto F1. Is this possible?.
  8. Mejor explicado? Bloquear que elijan autos del menu de F1 (Freeroam) en zonas X que yo defina por coordenadas Algo asi como "Greenzones" Pero en lugar de bloquear el kill, quiero bloquear que elijan autos. fin.
  9. Hola, mi duda es la siguiente. Quiero saber si existe algun resource que bloquee el respawn de autos en ciertas "zonas". Por ejemplo: En CJ que la gente no pueda elegir auto desde el menu de F1. Es posible esto?. Gracias.
×
×
  • Create New...