Jump to content

#Paper

Members
  • Posts

    568
  • Joined

  • Last visited

Everything posted by #Paper

  1. engineReplaceCOL engineLoadCOL Use that functions ^^
  2. You should insert this check in the vehicle blow up function: if not getVehicleOccupant(vehicle) then blowVehicle(vehicle) else outputDebugString("Detected occupied vehicle: don't blow!") end
  3. What u modifyed first that this doesn't work?
  4. I love this skin too! D:
  5. this theme... is simply FANTASTIC! I love it ^^
  6. I suggest you to make a backup of the script on every modify that u make, anyway, where is cbGUI defined? P.S: I suggest you to show us whole code
  7. You must disable the script that blow all unoccupied vehicle ^^
  8. Whit what event i can sostitute this?
  9. #Paper

    dxImages

    "attempt to compare number whit nil" in this line "if pointx>boundx then" local selectedTab function checkForCursorInImage() local pointx, pointy = getCursorPosition() local screenx, screeny = guiGetScreenSize() local pointx = screenx * pointx local pointy = screeny * pointy local imgX, imgY, imgW, imgH = x + barX + 35, 13 + textMove - 10, 100, 75 if isCursorShowing() then if isPointInBounds(mouseX, mouseY, imgX, imgY, imgW, imgH) then selectedTab = "stats" checkForTabs() end end end addEventHandler("onClientCursorMove", root, checkForCursorInImage)
  10. Anyway, i analized the code and there is not any triggerClientEvent into an onResourceStart, they are on: onGamemodeMapStart onPlayerWasted And another triggerClientEvent is in a function called by onPlayerWasted So, the problem can't be fixed whit onClientResourceStart
  11. mhh, and is there an event that triggers when the download is completed? And i was thinking, if i use onClientPlayerSpawn, is the same?
  12. Omg, i have a stupid problem, i start my script and in the debugscript i see that it triggers an event but it's not added on clientside, i restart the script and it triggers the event whitout any error, how to make it trigger the event always whitout errors?
  13. #Paper

    dxImages

    OMG, Error @ line 2: "attempt to compare number whit nil" function isPointInBounds(pointx,pointy,boundx,boundy,boundw,boundh) return pointx>boundx and pointy>boundy and pointx<boundw+boundx and pointy<boundy+boundh end function checkForCursorInImage() local pointx, pointy, worldx, worldy, worldz = getCursorPosition" class="kw4">getCursorPosition" class="kw4">getCursorPosition() * guiGetScreenSize() if isPointInBounds(pointx,pointy,x + barX + 35,13 + textMove - 10,100,75) then showStatsWindow() end end addEventHandler("onClientCursorMove", root, checkForCursorInImage) EDIT: i tryed whit this: function isPointInBounds(pointx,pointy,boundx,boundy,boundw,boundh) if pointx>boundx then if pointy>boundy then if pointxthen if pointythen return true else return false end else return false end else return false end else return false end end and the error is @ line 3
  14. #Paper

    dxImages

    emh? wich coordinates i must insert in pointx,pointy,boundx,boundy,boundw and boundh?
  15. #Paper

    dxImages

    No lol... this function checks if the cursor is showing... i need to know if the cursor is in the image <_
  16. #Paper

    dxImages

    So, i have 1 dxImage that i drow in the screen, how can i detect when the cursor is in the image?
  17. I thought he wanted to put the colored name when i said, anyway, sorry for my bad
  18. #Paper

    Smoothly

    Thanks you, I LOVE YOU!
  19. #Paper

    Smoothly

    I tryed to whit this, but it is too slow Is there another way to make it fast and smoothly?
×
×
  • Create New...