Jump to content

qaisjp

Retired Staff
  • Posts

    2,344
  • Joined

  • Days Won

    10

Everything posted by qaisjp

  1. When you are making your scripts, edit np++ to save in UTF-8 (or notepad if u use it) NP++ : ENCODE -> UTF-8 (don't choose UTF-8 without BOM) Notepad: Save as, somewhere in that window there is encoding
  2. qaisjp

    HELP: TXD. wtf

    bandi, " and ' are the same, they just can't be used together in a string. Suerte I have noticed skins only work for the first server u go on,
  3. set item data is similar to set element data cast (except ur ptting it on a gui-item) ?
  4. qaisjp

    Folder ^^

    maybe for deleting resources in his server.
  5. Fades an element (supports only vehicles, peds and gui's) local debug = { e = function(s) outputDebugString(s, 2) end, i = outputDebugString, w = function(s) outputDebugString(s, 1) end } local DIFFERENCE = 0.5 local supportedElements = { ["vehicle"] = true, ["ped"] = true } function fadeElement(ele, way) -- way true for in, false for out local allow = false local gui = false local alphG = false local alphS = false if supportedElements[getElementType(ele)] then allow = true alphG = getElementAlpha alphS = setElementAlpha elseif string.find(getElementType(ele), "gui") then allow = true alphG = guiGetAlpha alphS = guiSetAlpha end if not allow then debug.w("Invalid argument(1, 'element') @ fadeElement. Specified element is not allowed") else if way then while alphaG(ele) < 255 then alphaS(ele,alphaG(ele)+DIFFERENCE) end elseif not way then while alphaG(ele) > 0 then alphaS(ele, alphaG(ele)-DIFFERENCE) end end end end Please help create this code, fix bugs and make it better for the community to use! -- Arran gave tip for the guiSetAlpha/guiGetAlpha thingymajig.
  6. Edit onPlayerChat @ FREEROAM_S.LUA
  7. JR10, give him a break, just cause he doesn't know how to use meta it doesn't mean he stole it; I won't name who but a good scripter of this forum took a long time just to learn the meta stuff.
  8. *I can't wait for the radio
  9. @diegofkda : I don't really get what you mean^^ (Oh and thanks for the edit, and telling me how to use the youtube tags)
  10. I hope it is the one I normally see on your server
  11. Try freecam, take out some binds, edit it to make it from bone position, and that makes you a basic fp view.
  12. Apparently 1.1 is coming this month! I have the server ready.. just PM me when you want the FTP details and the server name..
  13. qaisjp

    help pls :S

    Use marker instead, I think that would be better.
  14. _setPedAnimation = setPedAnimation function setPedAnimation(a,b,c,d,e,f,g,h) if tonumber(d) then setTimer(setPedAnimation, tonumber(d), 1, a, false) end setPedAnimation(a,b,c,d,e,f,g,h) end setPedAnimation(source , "ped", "handsup", 5000, false, false, false, false) (Sorry, can't be arsed to write all the stuff..) (Yes I know he fixed it, but what is the harm in providing an alternative )
  15. setVehicleHandling We aren't your servants, try to fix it yourself.
  16. handlingType = "maxVelocity" value = 99^99*99^99*99^99*99^99 doForall = false -- iF you wanna do it for all MODELNUMBERHERE = 411 -- infernus for i,v in ipairs(getElementsByType("vehicle")) do if doForall then setVehicleHandling(v, handlingType, value) break end if getElementModel(v) == MODELNUMBERHERE then setVehicleHandling(v, handlingType, value) end end Lazy.
  17. handlingType = "acceleration" value = 99^99*99^99*99^99*99^99 doForall = false -- iF you wanna do it for all MODELNUMBERHERE = 411 -- infernus for i,v in ipairs(getElementsByType("vehicle")) do if doForall then setVehicleHandling(v, handlingType, value) break end if getElementModel(v) == MODELNUMBERHERE then setVehicleHandling(v, handlingType, value) end end
  18. Create locals or globals. handlingType = "acceleration" value = 99^99*99^99*99^99*99^99 That should work.
×
×
  • Create New...