Jump to content

3B00DG4MER

Members
  • Posts

    512
  • Joined

  • Last visited

Everything posted by 3B00DG4MER

  1. triggerServerEvent("playerDropAItem", getRootElement(),localPlayer, itemName) -- You've to trigger the source
  2. Not sure local screenW,screenH = guiGetScreenSize() local weapon function attach ( ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) if theVehicle then local x,y,z = getElementPosition ( theVehicle ) weapon = createWeapon("minigun", x, y, z + 1) attachElements ( weapon, theVehicle, 0, 0, 1 ) setWeaponClipAmmo(weapon, 99999) setWeaponState(weapon, "firing") setWeaponProperty(weapon, "fire_rotation", 0, -30, 0) end end addCommandHandler ( "attach", attach ) local aimSensitivity = 30; function rotateGun_Handler(cX, cY, aX, aY, wX, wY, wZ) local oX, oY, oZ, oRX, oRY, oRZ = getElementAttachedOffsets(weapon); if (oRX-((cY-0.5)*aimSensitivity) > 345 or oRX-((cY-0.5)*aimSensitivity) < 30) then -- Pitch Restriction oRX = oRX-((cY-0.5)*aimSensitivity); end if (oRZ-((cX-0.5)*aimSensitivity) > 330 or oRZ-((cX-0.5)*aimSensitivity) < 50) then -- Yaw Restriction oRZ = oRZ-((cX-0.5)*aimSensitivity); end --setCameraTarget(localPlayer,weapon) setCameraTarget(weapon) --setCameraMatrix(wX,wY,wZ) setElementAttachedOffsets(weapon, oX, oY, oZ, oRX, oRY, oRZ); setCursorPosition(screenW/2, screenH/2); end addEventHandler( "onClientCursorMove", getRootElement( ), rotateGun_Handler)
  3. Wrong Section You've to put in Media Section
  4. That's easy too need to use fetchRemote and callRemote I've add Email Verification to my gamemode
  5. AWSOME ! Good Job Your works are all amazing !
  6. CJ Model is Divided So,You've to change all parts of CJ Model.
  7. https://wiki.multitheftauto.com/wiki/OnClientClick there's a Parameter in that Event checks the Clicked Element
  8. Calling a Client Side Function in Server Side How Good is this ? LOL i've never saw an Error like that before
  9. Oh Works Thanks Lock it Plz
  10. But it's stayed isDown false and i want only one Time (Cuz i can't triggerEvent 10000 Times)
  11. Hi Guys, It's Dx Button How I can check here if left mouse button is UP ? function dxDrawButton(x,y,w,h,name,nameSize,borderColor,cx,cy) if (not cx) or (not cy) then cx,cy = getCursorPosition() end nameSize = nameSize or 1.00 borderColor = borderColor or tocolor(0,0,0,255) if isMouseWithinRangeOf(x,y,w,h,cx,cy) then if getKeyState("mouse1") then borderColor = tocolor(0, 100, 100, 200) else borderColor = tocolor(0, 200, 200, 200) end end dxDrawLine(x - 1, y - 1, x - 1, y + h, borderColor, 1, false) dxDrawLine(x + w, y - 1, x - 1, y - 1, borderColor, 1, false) dxDrawLine(x - 1, y + h, x + w, y + h, borderColor, 1, false) dxDrawLine(x + w, y + h, x + w, y - 1, borderColor, 1, false) dxDrawRectangle(x, y, w, h, tocolor(0, 0, 0, 150), false) dxDrawText(name, x , y , x + w, y + h, tocolor(255, 255, 255, 255), nameSize, "default", "center", "center", false, false, false, false, false) end
  12. Read Title: [PLAN] Semi-RP Gamemode
  13. 3B00DG4MER

    SQL Query

    No the table is not empty Just try it and it will work #result returns number of rows if they was result = { {},{},{},..... } But they're not Just try what i told you
  14. 3B00DG4MER

    SQL Query

    I'm sure that this works 100%
  15. I got some Help from IIYAMA: Hmm..So When I've to freeze Peds Is there another fix ?
  16. 3B00DG4MER

    SQL Query

    result[1].account -- 1 is the column, if there's many column you can just put number of it --account is the row name
  17. Hi guys, I tried to make Peds in different Interiors, but it's load only the interior that i'm in Server File: bots = {} function bots.load() for i,v in ipairs(getElementsByType("ped")) do if v:getData("ped:type") == "bot" then v:destroy() end end local query = SQL.Query("SELECT * FROM `bots`") for i=1,#query do local bot = createPed(query[i].skin,query[i].x,query[i].y,query[i].z,query[i].rot,false) bot:setInterior(query[i].int) bot:setDimension(query[i].dim) bot:setData("ped:type","bot") bot:setData("bot:name",query[i].name) bot:setData("bot:isJob",IntToBool(query[i].isjob)) end if #query == 0 then outputDebugString("- SAF - : No bot has been added to the server",3) outputDebugString("- SAF - : Please Check if there's any problem with your MySQL Server",3) else outputDebugString("- SAF - : "..#query.." bot(s) has been added to the server",3) end return query end bots.load()
  18. it's don't have default value so you've to add one or just set it manually
  19. i can't , i made more than 40 OOP function in One resource
×
×
  • Create New...