-
Posts
85 -
Joined
-
Last visited
Everything posted by Stylez
-
Lol but i removed all resources freom Resource folder, there is no posible resource which is running.
-
Can you help me to disable it?
-
alright.. i have another question i removed all resources from resource folder and i left only my own made spawn resource. And my friend joins server, we can see each others Nicknames and HP. How can i disable that? ;o
-
Ok then, how to change color of the text for this command? ;o
-
Yeah thats good. But what if i have RP server.. i will not be able to use it..
-
try "/me (any text here)" and see what happens
-
it outputs in chatbox, try it yourself by creating local server
-
Hmm, thanks. But is there more commands like this? BTW.. what about roleplay servers.. i dont think that is appropriate way to do it.
-
Hello, i found default /me command and i couldnt figure out how to disable it.. Any suggestions?
-
Ok, i see nobody can help me with this. So maybe theres is any resource with this script?
-
No, you dont get it. i want the color of the car to change slowly, just like in FFS when you buy that(i dont know what its called.)
-
Thanks it works now, but i wanted to colors change slowly within 5 sec. Not instantly after 5 sec.
-
I was trying to do it Server-side
-
well.. i dont understand what is wrong here. debug keeps saying bad argument @ isPedInVehicle I am trying to make a car color change script.. where color of the car changes slowly.. function cham(thePlayer) if isPedInVehicle(thePlayer) then local vehicle = getPedOccupiedVehicle(thePlayer) if vehicle then local r,g,b = math.random(255), math.random(255), math.random(255) setVehicleColor(vehicle, r,g,b) end end end addCommandHandler("cham", cham) setTimer(cham, 5000, 0)
-
Nah, it is just what i need. Thanks
-
Hey, guys need some help function cham(thePlayer, cmdName, r,g,b) local Vehicle = getPedOccupiedVehicle(thePlayer) if isPedInVehicle(thePlayer) then local r,g,b = math.random(0,255) outputChatBox(tonumber(r,g,b)) end end addCommandHandler("cham", cham) This is my script, and i want it to output to chabox 3 colors like that "12 57 96" not just 1 color "154" as it does now.
-
Uhm... What do you mean by that pic?
-
Cool website.. uploaded few of my wallpapers. Keep it up
-
Hey, solidsnake. i have new problem with same script. Everything works, just when i click on vehicle it opens 99999999+ window. function masiniukui() mainWin = guiCreateWindow(0.80, 0.15, 0.20, 0.60,"WINDOW!!!!!!!!!", true) local car = getPedOccupiedVehicle(getLocalPlayer()) if car then local driver = getVehicleOccupant(car) if driver then if isPedInVehicle(driver) then local carClick = getPedOccupiedVehicle(driver) if carClick then guiSetVisible(mainWin, true) end end end end end addEventHandler("onClientClick", getRootElement(), masiniukui) function cursor( ) if not isCursorShowing() then showCursor(true) else showCursor(false) guiSetVisible(mainWin, false) end end function bind (thePlayer, seat) if source == localPlayer then bindKey( "m", "down", cursor) end end addEventHandler("onClientPlayerVehicleEnter", getRootElement(), bind)
-
ok. i understand now. Thanks for your help.
-
cant figure out, why? i mean it should bind m key when player(source) enters the car. so why it needs checking?
-
oh didint knew that isCursorShowing funcion existed is the rest of my code ok?
-
Here. i tried to bind m key when player enters vehicle, so i could show and hide mouse. function cursor(button, state) if showCursor == false then showCursor(true) else showCursor(false) end end function bind () bindKey("m", "down", cursor) end addEventHandler("onClientPlayerVehicleEnter", getRootElement(), bind)
-
i deleted it 1 hour ago -.- so u say it should have worked? im gonna retry it with client side then.