Jump to content

Karuzo

Members
  • Posts

    1,213
  • Joined

  • Last visited

Everything posted by Karuzo

  1. We don't give support to leaked scripts.
  2. 1.No it doesn't matter what you type for your arguments. 2.Same with 1. 3.addCommandHandler has no element, normal event handlers have. i suggest you the wiki: https://wiki.multitheftauto.com/wiki/Sc ... troduction
  3. You should also check the mouse state. Otherwise it will trigger 2times. addEventHandler ( "onClientClick", root, function ( btn, state, _, _, _, _, _, element ) if btn == "left" then if state == "down" then if ( element and isElement ( element ) and element == gDude ) then gunsWindow ( ) end end end end )
  4. A friend in skype helped me out, the resource was the problem , dunno why. Thanks guys.
  5. Why? I always create my resources when my server is running, didn't had any problems with that. Just restarted the server , doesn't help at all, tried to put the folder into a .zip , same problem..
  6. Yeah but that wasn't the problem, and btw the download argument is 1.4+. Any other tips? PD: Other resources work like a charm. And the Server-sided file works also. So only the client-side file doesn't work, dunno why.
  7. Yes it is from the AMD's site. I think i'm already using the onboard graphics card, since i dunno how i should use AMD graphics card. PD: I'm using a laptop.
  8. Hey Guys, i have an awkward problem. I'm starting my script but it does nothing? I tried typing "refresh", no error. I also tried to start a function like function blabla() without an end so it gives me a debugscript error, but it doesn't output anything?? My whole script atm : local x, y = guiGetScreenSize() local blurShader addEventHandler("onClientResourceStart", resourceRoot, function() outputChatBox("yoo") blurShader = dxCreateShader("datas/BlurShader.fx") if blurShader then outputChatBox("YAY") end addEventHandler("onClientRender",root,DrawStuff) end) function DrawStuff() if (blurShader) then dxSetShaderValue(blurShader, "BlurStrength", 6); dxDrawImage(0, 0, x, y, blurShader) end end My Meta: "#ER|Karuzo" description="er_freeroam" version="1.0" type="script" /> "datas/BlurShader.fx" type="client" />
  9. Don't do that. Put an end after line 16. And try to tell us what /debugscript 3 says.
  10. http://pastebin.mtasa.com/277974738 I only could install the Wireless and Ethernet driver, if i wanted to install the graphics driver i got a blue screen. and with the storage driver it said that it doesn't support my platform. And if i wanna start MTA now it gives me this error: //EDIT: Got my MTA working again , installed Intel HD Graphics 3000 and Catalyst 14.4 , but the images still look ugly.
  11. Karuzo

    Mta Drive By

    https://community.multitheftauto.com/in ... ails&id=57
  12. http://pastebin.mtasa.com/134744279)
  13. Karuzo

    Warp

    Where did you defined "d" ?
  14. Karuzo

    What's that?

    Which line is 448?
  15. --client triggerServerEvent("getDetails", localPlayer,localPlayer) --server function getTheirDetails(lp) local ucpMail = getAccountData(getPlayerAccount(client), "ucpMail") or "E-Mailul acestui cont nu a fost setat!" local ucpUser = getAccountName(getPlayerAccount(client)) or "Nu esti logat!" triggerClientEvent(lp,"onResults", lp, ucpMail, ucpUser) end addEvent("getDetails", true) addEventHandler("getDetails", root, getTheirDetails)
  16. Karuzo

    race state

    ah yeah, was my mistake. You're welcome.
  17. Karuzo

    [TUT] Basic Lua

    It's a little bit messed up. but thanks for this tutorial.
  18. Karuzo

    race state

    --server function exampleFunction_Handler(newState, oldState) if(newState == "LoadingMap") then triggerClientEvent(playerElement, "myEvent", getRootElement()) elseif (newState == "Running") then triggerClientEvent(playerElement,"removeEvent",getRootElement()) end end addEvent("onRaceStateChanging", false) addEventHandler("onRaceStateChanging", getRootElement(), exampleFunction_Handler) --client local x,y = guiGetScreenSize() local defScale = 1 local currentScale = defScale local maxScale = 2 local step = 0.05 -- How fast to change the size local turn = true -- true = increase size, false = decrease size local text = "Loading next map" local font = dxCreateFont("myFont.ttf",10) function myClientFunction_Handler() if turn == true then -- If we increase the value currentScale = currentScale + step if currentScale > maxScale then currentScale = maxScale turn = false -- Reached max? Then make it go back end else currentScale = currentScale - step if currentScale < defScale then currentScale = defScale turn = true end end local width = dxGetTextWidth(text,currentScale,font) local height = dxGetFontHeight(currentScale,font) dxDrawText(text,x/2-width/2,y/2-height/2,width,height,tocolor(255,255,255,255),currentScale,font) end function AddingEvent() addEventHandler("onClientRender",root,myClientFunction_Handler) end addEvent("myEvent", true) addEventHandler("myEvent", getRootElement(), AddingEvent) function RemovingEvent() removeEventHandler("onClientRender",root,myClientFunction_Handler) end addEvent("removeEvent", true) addEventHandler("removeEvent", getRootElement(), RemovingEvent)
  19. Karuzo

    The last reply

    i don't want to know why that game is 18+
×
×
  • Create New...