
qaisjp
Retired Staff-
Posts
2,344 -
Joined
-
Days Won
10
Everything posted by qaisjp
-
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
-
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,
-
set item data is similar to set element data cast (except ur ptting it on a gui-item) ?
-
Thanks for your positive words
-
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.
-
Edit onPlayerChat @ FREEROAM_S.LUA
-
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.
-
*I can't wait for the radio
-
@diegofkda : I don't really get what you mean^^ (Oh and thanks for the edit, and telling me how to use the youtube tags)
-
Re-add the usersystem stuff.
-
I hope it is the one I normally see on your server
-
Try freecam, take out some binds, edit it to make it from bone position, and that makes you a basic fp view.
-
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..
-
Use marker instead, I think that would be better.
-
_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 )
-
setVehicleHandling We aren't your servants, try to fix it yourself.
-
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.
-
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
-
Create locals or globals. handlingType = "acceleration" value = 99^99*99^99*99^99*99^99 That should work.