![](https://forum.multitheftauto.com/uploads/set_resources_22/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Karuzo
Members-
Posts
1,213 -
Joined
-
Last visited
Everything posted by Karuzo
-
We don't give support to leaked scripts.
-
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
-
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 )
-
A friend in skype helped me out, the resource was the problem , dunno why. Thanks guys.
-
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..
-
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.
-
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.
-
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" />
-
Don't do that. Put an end after line 16. And try to tell us what /debugscript 3 says.
-
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.
-
Just post them here lol.
-
https://community.multitheftauto.com/in ... ails&id=57
-
I don't see any proofs.
-
http://pastebin.mtasa.com/134744279)
-
You're welcome buddy.
-
--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)
-
ah yeah, was my mistake. You're welcome.
-
It's a little bit messed up. but thanks for this tutorial.
-
--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)
-
i don't want to know why that game is 18+