
mint3d
Members-
Posts
425 -
Joined
-
Last visited
Everything posted by mint3d
-
--client side -- JoinMusic = playSound("music/join.mp3") addEvent("onPlayerLogin", true) addEventHandler("onClientPlayerSpawn", root, function() if isElement(JoinMusic) then destroyElement(JoinMusic) end end) -- Server Side -- addEventHandler("onPlayerLogin", root, function() triggerClientEvent(source, "onClientPlayerSpawn", source) end)
-
Ye Neither do I it doesn't look like a full code and i think he means that the image comes from the left but he wants it to come from the right
-
I think the thing you said the timer
-
I tried the code its not working well
-
Chopper i got a problem all hear it
-
I basically want to change it from onClientPlayerSpawn closemywindow to a timer of 2 mins local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local tabScript = guiCreateTab( "Script Information", tabPanel ) local tabStaff = guiCreateTab( "Staff", tabPanel ) guiCreateLabel(0.02, 0.04, 0.94, 0.2, "These scripts have been edited and have new custom systems.", true, tabScript) guiCreateLabel(0.02, 0.04, 0.94, 0.92, "Owner - Lewis White.\nCo-Owner - Bob Falcon\nHead Admins - None\nLead Admins - None\nSuper Admins - None\nAdmins - Brian James\nTrial Admins - James Bullet, Jack Granger", true, tabStaff) function closemyWindow () guiSetVisible (myWindow, false) end addEventHandler("onClientPlayerSpawn", getRootElement(), closemyWindow)
-
What do you mean? I want it to play a sound for a timer of only 5 seconds how may I go about doing this?
-
Ok so i got the thing i want to do so that when onPlayerSpawn it plays a welcome song and only plays for 5 seconds would it be this its not working any help please? I just need to add timer i think and make a server side? JoinMusic = playSound("music/welcome.mp3") addEventHandler("onClientPlayerSpawn", root, function() if isElement(JoinMusic) then destroyElement(JoinMusic) end end)
-
It shows up when they join but stays up when they login i need it to disappear when login would i use a server side with somthing like this addEventHandler("onPlayerLogin", root, function() end )
-
ok so i made this script but how it doesn't seem to close when they login local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) local tabScript = guiCreateTab( "Script Information", tabPanel ) local tabStaff = guiCreateTab( "Staff", tabPanel ) guiCreateLabel(0.02, 0.04, 0.94, 0.2, "These scripts have been edited and have new custom systems.", true, tabScript) guiCreateLabel(0.02, 0.04, 0.94, 0.92, "Owner - Lewis White.\nCo-Owner - Bob Falcon\nHead Admins - None\nLead Admins - None\nSuper Admins - None\nAdmins - Brian James\nTrial Admins - James Bullet, Jack Granger", true, tabStaff)
-
What is it?
-
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) or isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Supermoderator " ) ) then
-
In the client side it loads a bar that says all the stuff it doesn't load it but it fixes the car that is only half of the server side I done the client side i think right i think but i don't know how to add it server side would it be addEventHandler("onCount", root, function() triggerClientEvent(source, "onVehicleEnter", source) end)
-
try if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) or isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Supermoderator " ) ) then
-
It's ok i fixed it to work with my RP scripts just changed onlogin to onClientPlayerSpawn
-
But i mean i have the file in with the script how to make it play from there? just that one song its called earthquake I tried this but it plays when they join but not when they login -- Your Sounds local sounds = { "sounds/joinsound.ogg", -- Files .ogg "sounds/joinsound.mp3", -- Files .mp3 "sounds/symp1.ogg", } -- Event Player Connect addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() setTimer(function() playSound(sounds[math.random(1, #sounds)]) end, 1000, 1) end )
-
JoinMusic = playSound(earthquake) addEvent("onLogin", true) addEventHandler("onLogin", root, function() if isElement(JoinMusic) then destroyElement(JoinMusic) end end) so like that ?
-
you can simply do if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Supermoderator " ) ) then