
qaisjp
Retired Staff-
Posts
2,344 -
Joined
-
Days Won
10
Everything posted by qaisjp
-
addCommandHandler("removemods",function() for i,v in pairs(getElementsByType("txd")) do destroyElement(v) end end
-
I know this is a foolish idea, but it is a useful idea. Video compatibility. The feature could show a video. Maybe it could be streaming or could be something like a dx function. Where it shows a part of a video for one frame. ------------------------------ Ways you could use it: dxDrawVideo(string videoPath, float onScreenX, float onScreenY,float positionValue, float alpha, string color = nil ) videoPath = "trailer.avi" onScreenX = 0 onScreenY = 1 positionValue = positionValue + 0.001 (position of video to show) alpha = 255 (alpha of video) color = nil (can use tocolor - without alpha option) Use this with onClientPreRender. It could show that part of the video for one frame. Note: It could also play the sound of that frame for one frame. Not noticeable if you dont use onClientPreRender. --------------------------------- Using the above method you could keep videoPath as a stream but positionValue is nil. I like this idea, what do you think about it? Is it even possible?
-
the barrels thingy mustve been made client side by the looks of it, maybe respawn rate was different. check if it made by script or not
-
for i,v in pairs(tableOfIdiots) do if v == getLocalPlayer() then outputChatBox("You are an idiot!", v) break end end
-
I want to remove the login command and I tried removeCommandHandler("login") and that returns false. The reason for this is that I need loggin in only via GUI. If I cancel the onPlayerLogin event I won't be able to log in at all. All I need is the removal of the command. Secondly how do you remove the message "You logged in" when logging in (via gui)
-
wtf is even that? lol all he did was add function and end. -.-
-
Check logW variable although i suppose u have already done it
-
outputDebugString("start") pVeh = getPedOccupiedVehicle ( localPlayer ) vehLog = {} outputDebugString("if start") if not vehLog[pVeh] then logX, logY = guiGetPosition ( logPane, false ) outputDebugString("getpos") lodW, logH = guiGetSize ( logPane, false ) outputDebugString("getsize") vehLog[pVeh] = guiCreateScrollPane ( logX, logY, logW, logH, false, mainWnd.window ) outputDebugString("createscroll") outputDebugString(tostring(isElement(vehLog[pVeh]))) guiSetVisible ( vehLog[pVeh], false ) outputDebugString("setvis") end outputDebugString("if end") i know it isnt clean code but take a check and see if it does it in order (if start ... getpos ... getsize.. createscrolll ... true .. setvis...if end)
-
I don't think someone wants to reveal their email address just to ask what kind of scripting work you need -.-
-
I'm not against your post but please be a little more specific... what do you want in your server.
-
Serial ban ftw! A monkey can get out of an IP ban.
-
+1 that answers both questions. Thanks Cast
-
1) Is hm = { jaja = "hi" } the same as hm = { ["jaja"] = "hi" } 2) will hm ={ jaja = "jo" } function lolo()if hm.jaja == hm["jaja"] then return true end end return true?
-
Mate, never ever change topic title and main post just to say it is solved. Just put [sOLVED] to the start of the title and a message at the start of the main post. otherwise people who have the same problem wont know what to do.
-
Troyan or Trojan ?
-
* Maybe the "image" could be an image element.
-
No problem, glad you solved your problem.
-
Wow, i can't wait for all of this! If you need any assistance, I may be of use!
-
Probably an okayish idea: image engineImportTXDImage(element TXD_Element, string filename) This could return an image for use in dxDrawImage and guiCreateImage. Maybe edit ...draw/create image for compatibility for the 'image item' This could allow you to load specific images from a txd and import them for use as a viewable image (and not on a model) What do you think about this idea?
-
I don't really know what to say about the idea but i suppose setCameraFOV should be setPlayerFOV(element thePlayer, float/int newLevel)