Jump to content

Enargy,

Members
  • Posts

    1,102
  • Joined

Everything posted by Enargy,

  1. Enargy,

    Confused!

    I need a little help, I want this GUI / Panel only one I see is displayed, example: when a player is registered (with your accounting data) to the server, this panel displays local sx, sy = guiGetScreenSize() function guiRegistered( x, y, w, h, text, relative, parent ) GUI = guiCreateWindow(sx / 2.5 - 310, sy / 1.4 - 260, 246, 340, "TEXT", false) player = guiCreateButton(6, 4, 233, 56, "localPlayer", false, GUI) anims = guiCreateButton(78, 65, 65, 20, "Anims", false, GUI) info = guiCreateButton(149, 65, 65, 20, "Info", false, GUI) close = guiCreateButton(7, 89, 65, 20, "Close", false, GUI]) end
  2. Hi, I'm working on a project about geometric radar, and I'm thinking to make these radars geometric should I use shader?
  3. There is a function (with others of 'destroyElement') that can fade the vehicle?
  4. Working!, had erased an argument. thanks
  5. ERROR: Client (nick) triggered serverside event onServerCall, but event is not added serverside ERROR: Client (nick) triggered serverside event onLoadedAtClient, but event is not added serverside No triggered
  6. function giveMeVehicles(vehicles) if type(vehicles) == 'number' then vehicles = { vehicles } end local px, py, pz, prot local radius = 3 local playerVehicle = getPedOccupiedVehicle(source) if playerVehicle and isElement(playerVehicle) then px, py, pz = getElementPosition(playerVehicle) prot, prot, prot = getVehicleRotation(playerVehicle) else px, py, pz = getElementPosition(source) prot = getPedRotation(source) end local offsetRot = math.rad(prot) local vx = px + radius * math.cos(offsetRot) local vy = py + radius * math.sin(offsetRot) local vz = pz + 2 local vrot = prot local vehicleList = g_PlayerData[source].vehicles local vehicle if ( not vehicles ) then return end for i,vehID in ipairs(vehicles) do if vehID < 400 or vehID > 611 then errMsg(vehID ..' is incorrect vehicle model', source) elseif not table.find(getOption('vehicles.disallowed'), vehID) then if #vehicleList >= getOption('vehicles.maxperplayer') then unloadVehicle(vehicleList[1]) end vehicle = createVehicle(vehID, vx, vy, vz, 0, 0, vrot) if (not isElement(vehicle)) then return end setElementInterior(vehicle, getElementInterior(source)) setElementDimension(vehicle, getElementDimension(source)) table.insert(vehicleList, vehicle) g_VehicleData[vehicle] = { creator = source, timers = {} } if vehID == 464 then warpPedIntoVehicle(source, vehicle) elseif not g_Trailers[vehID] then if getOption('vehicles.idleexplode') then g_VehicleData[vehicle].timers.fire = setTimer(commitArsonOnVehicle, getOption('vehicles.maxidletime'), 1, vehicle) end g_VehicleData[vehicle].timers.destroy = setTimer(unloadVehicle, getOption('vehicles.maxidletime') + (getOption('vehicles.idleexplode') and 10000 or 0), 1, vehicle) end vx = vx + 4 vz = vz + 4 else errMsg(getVehicleNameFromModel(vehID):gsub('y$', 'ie') .. 's are not allowed', source) end end end
  7. If I do not remember that line was
  8. I want to add the line 'warPedIntoVehicle' For Freeroam, When a player creates a vehicle, shall be directly teleported inside the vehicle, But donot which add...
  9. Hi again, I make the point about this basic function, but now I want to place a number after the command. example: /<cmd> <number> --- '<number>' would be a specific number function testing() outputChatBox("Hello everybody!", 0, 0, 200, true) end addCommandHandler("hi", testing) Someone can help me.
  10. I mean import a file, not to replace
  11. Well, currently I want to know how to import a dff file to my server, I have seen in some servers that have maps that are not included/edited in the GTA SA. ¿any tool or function for this?
  12. Hi all, I want to know how to make the text box and memo to write numbers in place of letters, Thanks. gui = guiCreateWindow(371, 251, 299, 104, "", false) guiSetVisible(gui, false) edit = guiCreateEdit(16, 40, 268, 27, "", false, gui) function showGUI() guiSetVisible (gui , not guiGetVisible ( gui ) ) showCursor ( guiGetVisible ( gui ) ) end bindKey("o", "down", showGUI)
×
×
  • Create New...