- 
                Posts2,753
- 
                Joined
- 
                Last visited
- 
                Days Won18
Everything posted by Captain Cody
- 
	You can try this; I'm not sure of the performance impact it would have though. -- Table to store current elements Elements = {} -- Type of element you want to search for Type = "object" -- Factor in already created objects -- for i,v in pairs(getElementsByType(Type)) do Elements[v] = true end -- Every secound check for new elements -- setTimer ( function() for i,v in pairs(getElementsByType(Type)) do if not Elements[v] then Elements[v] = true triggerCreated(v) end end end, 1000, 0 ) -- Output chat box the elements data if it was newly created -- function triggerCreated(element) outputChatBox(tostring(element).." Created") end
- 
	We're working right now on updating the VMs to windows server 2016.
- 
	Publica en la selección de scripting en español (Please post in the spanish scripting selection)
- 
	  B.L.A.S.T. V5!!! ALL NEW!! ALL GOOD!! ALL SPAM!!Captain Cody replied to Mr.Bill's topic in B.L.A.S.T. A : For every bug you fix 18 more show up. Q : Why?
- 
	  B.L.A.S.T. V5!!! ALL NEW!! ALL GOOD!! ALL SPAM!!Captain Cody replied to Mr.Bill's topic in B.L.A.S.T. A : Magic Q : What is the best game ever to exist.
- 
	Create a new topic for new questions.
- 
	I wrote it quickly before I had to leave, I didn't really pay attention to indentation.
- 
	Did not notice that, Open = false function toggleFRWindow(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectinACL("user."..accName, "Admin") then if Open then Open = false showCursor(thePlayer,false) triggerClientEvent ( thePlayer, "OpenOrClose", thePlayer,false) colorPicker.closeSelect() else Open = true showCursor(thePlayer,true) triggerClientEvent ( thePlayer, "OpenOrClose", thePlayer,true) end end end addCommandHandler('fr', toggleFRWindow) Client - function OpenOrCloseClient(Open) if Open then showAllWindows() else hideAllWindows() colorPicker.closeSelect() end end addEvent( "OpenOrClose", true ) addEventHandler( "OpenOrClose", localPlayer, OpenOrCloseClient ) Not tested, was just a quick thing I made.
- 
	Try this addIRCCommandHandler("!staff",function(server,channel,user,command,account,group) outputDebugString('1') if account and group then outputDebugString('2') if isObjectInACLGroup("user."..account,aclGetGroup(group)) then outputDebugString('3') aclGroupRemoveObject(aclGetGroup(group),"user."..account) ircSay(channel,account.." has been successfully removed from "..group.."!") outputChatBox("#FFFF00* #FF008F[#FFFFFFIRC#FF008F] #FFFFFF"..ircGetUserNick(user).."#FFFFFF has removed "..account.." from "..group.."!",getRootElement(),255,0,0,true) else outputDebugString('4') aclGroupAddObject(aclGetGroup(group),"user."..account) outputChatBox("#FFFF00* #FF008F[#FFFFFFIRC#FF008F] #FFFFFF"..ircGetUserNick(user).."#FFFFFF has added "..account.." to "..group.."!",getRootElement(),255,0,0,true) ircSay(channel,account.." has been successfully added to "..group.."!") end else outputDebugString('5') ircSay(channel,"Incorrect Syntax! !addstaff <playerName> <aclGroup>") end end) Tell me which numbers it shows.
- 
	thePlayer Is not defined, isPlayerInACL Could be defined, but I'm not to sure https://wiki.multitheftauto.com/wiki/IsPlayerInACL function toggleFRWindow(thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectinACL("user."..accName, "Admin") then if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() end end end addCommandHandler('fr', toggleFRWindow)
- 
	Oh and here's an early render of it. (The light color codes are way out of wack at this stage) (Oh and if any one has any suggestions as to what I should make / vehicles I should combine I'd like to hear them. I absolutely love modeling, would take modeling over scripting any day)
- 
	Spent a bit working on a hustler bus, "Front end from hustler, rear end from quite heavily modified bus". Was going to use it on my server but instead decided against. So I'll just put it here in hopes of someone putting it to use. Has questionable collisions, and maybe needs a few changes; but other then that it's basically a complete vehicle. I tried adding enterable interior then found it was to short in the front to do so, and it wouldn't look right taller so I threw in some last minute touches and switched back to old bus. Download Col Source If you're interested in using it go right ahead, any thing you want changed just comment here and I'll do so when I have the time. (Or do it yourself either way works)
- 
	You can create a custom helmet object, then use the resource bone attach.
- 
	Needs prelighting look it up for tutorials.

 
            
         
					
						