Jump to content

erisP

Members
  • Content Count

    26
  • Joined

  • Last visited

Community Reputation

2 Neutral

About erisP

  • Rank
    Advanced Member

Recent Profile Visitors

190 profile views
  1. erisP

    [HELP] rocket

    I don't understand, can you give an example?
  2. erisP

    [HELP] rocket

    How can I reduce rocket launcher damage using OnClientExplosion?
  3. Sorry, thank you for your time.
  4. first; function warpPlayer() local selected = guiGridListGetSelectedItem(transportGUI.locationgrid) if (selected) then local DestinationData = guiGridListGetItemData(transportGUI.locationgrid, selected, 1) -- x,y,z,rotation,price if (getPlayerMoney() >= DestinationData[5]) then triggerServerEvent ( "transport.onPlayerWarp", localPlayer,DestinationData[5]) toggletransportGUI() cameraTranslate(DestinationData[1],DestinationData[2],DestinationData[3],DestinationData[4]) else outputChatBox("You do not have eno
  5. Bad Argument 'guiGridListSetItemData' [Expected number at argument 2, got nil] i got this error.
  6. error passed but script doesn't work I think it's broken
  7. local locations = { --{x,y,z,rot} {1213.509765625, -1308.96875, 13.556906700134, 87.241027832031},--LS AS Hospital {1517.7939453125, -1656.39453125, 13.539175033569, 263.27215576172},--LSPD {1584.853515625, 1799.9892578125, 10.828001022339, 3.9798583984375},--LV hospital {1994.919921875, -1443.6484375, 13.566557884216, 173.54541015625},--LS Jefferson Hospital {1345.6220703125, -1045.0859375, 26.6484375, 305.97665405273},--LS LS entrance intersection {1969.9306640625, -2187.93359375, 13.546875, 85.235992431641},--LS Airport {2305.111328125, 2457.5751953125, 10.82
  8. erisP

    [HELP] CreatePed

    It worked, but all pads have immortal functionality.
  9. erisP

    [HELP] CreatePed

    I know but I shouldn't use client.lua.
  10. How to create immortal createPed function on server side.
  11. Is there any code to prevent the player from dying under the vehicle?
  12. -- Tables for the fuel markers local pumpsMarkers = {} local pumps = { -- SF GAS STATION NEAR SFPDZ { {-1672.05, 405.35, 6.85, true }, {-1666.75, 410.37, 6.85 }, {-1679.24, 412.21, 6.85 }, {-1673.81, 417.5, 6.85 }, }, -- SF Juniper Hallow place.Near Jizzys club>Pay N spray Gas station { {-2407.49, 971.53, 44.97, true }, {-2407.56, 982.32, 44.97 }, {-2414.68, 980.48, 44.97 }, {-2414.68, 970.04, 44.97 }, }, -- Angel Pine GAS STATION { {-2249.57, -2558.71, 31.58, true }, {-2239.06, -2563.1, 31.6 }, {-2244.82, -2561.4, 31.6 }, }, -- FLINT COUNTRY TRUCKER JOB GAS STATION {
  13. there is no such structure
  14. addEventHandler ( "onClientResourceStart", resourceRoot, function () for ind,tbl in ipairs(pumps) do for i=1,#tbl do local x, y, z = tbl[i][1], tbl[i][2], tbl[i][3] local theMarker = createMarker ( x, y, z -1, "cylinder", 3.0, 135, 132, 134, 70 ) setElementData(theMarker,"ind",ind) table.insert ( pumps, theMarker ) addEventHandler ( "onClientMarkerHit", theMarker, onFuelPumpMarkerHit, false ) addEventHandler ( "onClientMarkerLeave", theMarker, onFuelPumpMarkerLeave, false ) end end end ) ERROR: fuel\pumps.lua:4: attempt to get length of local 'tbl' (a userd
×
×
  • Create New...