
xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
lol, i didn't see that. Its from the music, don't worry about it.
-
(I am not sure how to use the tag )
-
Try making the text, then image?
-
Thanks for that, but there is a new issue. For some reason, when the engine dies, it just turns back on setTimer( function () for i,v in ipairs (getElementsByType("vehicle")) do if (tonumber(getElementData(v,"fuel"))==1) and (getVehicleEngineState(v)==true) then setVehicleEngineState(v,false) elseif (tonumber(getElementData(v,"fuel")) > 0) and (getVehicleEngineState(v)==false) then setVehicleEngineState(v,true) end end end, 1000, 0 )
-
Im trying to make my fuel system, but i get an error. I dont know how to fix it, here is my code to set the vehicle fuel: (server) setTimer( function () for i,v in ipairs (getElementsByType("vehicle")) do if (getElementData(v,"fuel")=="") then -- I have also tried: if (getElementData(v,"fuel")==nil) then setElementData(v,"fuel",'50',true) outputChatBox(v) end end end, 500, 0 ) And, here is my code to get the fuel. local fuel = getElementData(getPedOccupiedVehicle(localPlayer),"fuel") dxDrawBorderedText("Fuel: "..fuel.."%", screenWidth*0.750, screenHeight*0.9, screenWidth, screenHeight, tocolor(255, 255, 255), scale, "arial", "left", "center") and the error: attempt to concatenate local "fuel" (a boolean value)
-
Hey guys, im having a hard time coming up with idea's for my RPG server. If you have an idea that you would like to see come to life, then just post a reply, and i'll try to make it
-
You just have to make exports to get the player gang, and i know its possible, because i have done it with those two resources.
-
I think he is talking about replacing models. If you are just talking about replacing models then download this.
-
try using "root" instead of "getLocalPlayer()" like: addEventHandler("onClientRender",root,draw) removeEventHandler("onClientRender",root,draw)
-
/stop votemanager ?
-
Your code is wrong. Line 6, "moveObjct"? lmao, fail
-
How to give a random camera when a player connect????
xXMADEXx replied to Jorgito'Molina's topic in Scripting
This is how i do it: camraViews = { {x,y,z,x2,y2,z2}, } function randomView() return unpack(camraViews[math.random(#camraViews)]) end addEventHandler("onPlayerJoin",root, function () local p = source local x,y,z,xx,yx,zx = randomView() fadeCamera(p, true, 5) setCameraMatrix(p,x,y,z,xx,yx,zx) end ) addEventHandler("onPlayerLogin",root, function () local k = source fadCamera(k,true,5) setCameraTarget(k,k) end ) -
Try this: puerta = createObject (971, -2136.599609375, 208.599609375, 38, 0, 0, 270) function abrirPuerta(player) moveObject (puerta, 5000, -2136.6000976563, 208.60000610352, 29) setTimer( function () moveObject(puerta, 5000, -2136.599609375, 208.599609375, 38) end, 3500, 1 ) end addCommandHandler ("james", abrirPuerta)
-
Or, if you're using "dxDrawText" you can use "math.random" for the alpha.
-
therefore, you just need to report to the maker of DayZ.
-
You can try this, but idk if it works. addEventHandler("onPlayerDamage",root, function () p = source timer = setTimer( function () addEventHandler("onPlayerLogout",p, function () outputChatBox("You cannot logout for another "..getTimerDetails(timer) / 1000 .." seconds.",p,255,0,0) cancelEvent() end ) end, 1000, 1 ) end )
-
Its all in scripting.
-
Hey everyone im making a tag thing for my server, but for some reason the script below will not work, the chat shit works, but not "#FFFFFF" or the r,g,b addEventHandler("onPlayerChat",root, function (input) local getAccount = getAccountName(getPlayerAccount(source)) local export = exports['[ROG]Groups']:getAccountGang(getAccount) local r,g,b = getPlayerNametagColor(source) if (export ~= "None") then cancelEvent() outputChatBox(getPlayerName(source).." ["..export.."]: #FFFFFF"..input,tostring(r),tostring(g),tostring(b),true) end end )
-
I use NotePad ++, because, it can help if you have missed an "end" or ")"
-
Text isn't coming out.
-
How can i make the script below, so that when the box shows, it will stay on the message, and not generate through all of them? messages = { {"Enjoy Your Stay "}, {"Website:\n[url=http://www.rog-mta.tk]http://www.rog-mta.tk[/url]"}, {"Have Fun, Or Be Punished!"} } function genorateMessage() return unpack(messages[math.random(#messages)]) end function dxRectangle() dxDrawRectangle(998, 285, 275, 487, tocolor(0, 0, 0, 150), true) dxDrawLine(998, 286, 998, 774, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(996, 772, 1270, 772, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(996, 285, 1270, 285, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(1270, 284, 1270, 772, tocolor(255, 255, 255, 255), 1, true) dxDrawText("INFORMATION", 1008, 296, 1262, 328, tocolor(255, 255, 255, 255), 2, "default-bold", "center", "top", false, false, true, false, false) dxDrawLine(996, 348, 1270, 348, tocolor(255, 255, 255, 255), 1, true) dxDrawText(genorateMessage(), 1018, 352, 1249, 753, tocolor(255, 255, 255, 255), 1.5, "default", "left", "top", false, false, true, false, false) end setTimer( function () addEventHandler("onClientRender",root,dxRectangle) setTimer( function () removeEventHandler("onClientRender",root,dxRectangle) end, 10000, 1 ) end, 15000, 0 )
-
You can request scripts here. He is a pro scripter, and will not have a prob making these.