-
Posts
2,947 -
Joined
-
Last visited
Everything posted by JR10
-
First try /debugscript 3 to see the errors, And post the code.
-
viewtopic.php?f=91&t=33845 Here it is, weird problem really.
-
I remember someone had the same problem don't know if he fixed it.
-
Maybe make the timer to unfreeze the vehicle longer a bit.
-
Did you try what i said??
-
Wait a minute getPlayerOccupiedVehicle It's not even a function how do you even get teleported should be getPedOccupiedVehicle And should be an error.
-
Any errors/warnings?? IDK Maybe try removing the player and warping him again when the position changes.
-
The skin doesn't show or your changes doesn't show? Did you use /debugscript 3 to spot the errors ??
-
No blur or dirt is with the functions i gave you about the grass i have no idea what are you talking about.
-
use this setPlayerName(source, getPlayerName(source):gsub('#%x%x%x%x%x%x', '') Not tested but should work.
-
First did you see my code?? because i fixed all the wrong spelled functions and and its not showing ofc because addEventHandler("onClientResourceStart", getResourceRootElement(getThisResouce()), function () getThisResouce?? should be: addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () guiSetVisible(wdwLogin, true) Hmm?? its already shown up you should hide it change tru to false.
-
Klesh, Alot of the functions are spelled wrong. function createLoginWindow() wdwLogin = guiCreateWindow(787,419,187,323,"Login System by Sparrow",true) lblUser = guiCreateLabel(22,40,142,17,"Username ",true,wdwLogin) lblPass = guiCreateLabel(25,167,127,20,"Password",true,wdwLogin) edtUser = guiCreateEdit(21,71,141,32,"",true,wdwLogin) edtPass = guiCreateEdit(23,202,141,32,"",true,wdwLogin) guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) btnLogin = guiCreateButton(31,263,133,41,"Login",true,wdwLogin) guiSetFont(btnLogin,"sa-header") guiSetVisible(wdwLogin, true) addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResouce()), function () createLoginWindow() outputChatBox("Welcome to MTA:SA Server, please log in.") if (wdwLogin ~= nil) then guiSetVisible (wdwLogin ,true) else outputChatBox("An unexpected error was ocurred and the log in Window was not created") end showCursor(true) guiSetInputEnabled(true) end ) function clientSubmitLogin (button,state) if button == "left" and state =="up" then guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) end end function clientSubmitLogin (button,state) if button =="left" and state == "up" then local username = getGuiText(edtUser) local password =getGuiText(edtPass) if username and password then triggerServerEvent("submitLogin", getRootElement (), username, password) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) else outputChatBox("Please enter a username and password") end end end
-
Stealing AcitanoX's ideas! Ty for made this script for he! lol, i didn't steal it from you, i didn't even see your post.
-
No problem and yes it is.
-
I tested it, your problem is the interior, the position you specified above is an interior, so you must use setElementInterior.
-
I don't really understand what you want but: yes you can set the blur level and set the vehicle dirt level using setPlayerBlurLevel setVehicleDirtLevel what you mean you mean sending data between server and client not using setElementData? Well you can trigger events. Sorry if i didn't get what you want.
-
He said take a look not copy it, you asked for how to get the bar position and in heligrab resource there is something like it.
-
I guess he is talking about a resource not a map.
-
Do you want to disable being damaged with a heli no matter how he got hit? here it is: --CLIENT SIDE!! addEventHandler('onClientPlayerDamage', root, function(attacker) if getElementType(attacker) == 'vehicle' and getElementModel(attacker) == 497 then -- You can add many ids as you want cancelEvent() end end ) not tested and idk if it will work the event: https://wiki.multitheftauto.com/wiki/OnC ... ayerDamage
-
Then there is no DD resources released learn and make your own.
-
Well they must have used TXD to change it.
-
Well, i tried MEd but i figured out another way easier using another editor anyway thanks.
-
And i have to search for the place i want ? Any easier way?? thanks.