-
Posts
2,947 -
Joined
-
Last visited
Everything posted by JR10
-
Put all the frames, add them in the meta. And onClientRender: local index = 1 addEventHandler("onClientRender" , root , function ( ) dxDrawImage ( --argmuments , "imageName"..index..".png" ) index = index + 1 if index >= MaxFrame then index = 1 end end ) Of course you will edit it, for the name of your images, and the max frame.
-
English only here, translate that.
-
source is the vehicle. Hydra1 = createVehicle ( 520, 362.26513671875, 1997.4976806641, 21.543445587158 ) function lockTheHydras(player, seat, jacked) if source == Hydra1 then local accountname = getAccountName (getPlayerAccount(player)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "AR-AirForce" ) ) then return end cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockTheHydras )
-
It's not moving, because, it's attached to the car. If it's not attached it will move. The way you are making this isn't working. I tried doing that before it didn't work.
-
Stole Castillo's racer user panel: https://community.multitheftauto.com/index.php?p= ... ls&id=2686
-
What you mean a name? That table can only contains players. if muted [ player ] ~= nil then
-
If there is something like that, then you will find it on the community, don't ask here. search here: https://community.multitheftauto.com/index.php?p=resources
-
Both function arguments are wrong. bool executeSQLUpdate ( string tableName, string set, [ string conditions ] ) 3 arguments. executeSQLUpdate should be: executeSQLUpdate( "playerData", "name = '" .. getAccountName( getPlayerAccount( source ) ) .. "', x = '" .. x .. "', y = '" .. y .. "', z = '" .. z .. "', s = '" .. s .. "'" ) Creating the table is correct, make sure you are checking registry.db not internal.db
-
Have already made the mute functionality? for tables: muted = { } --onPlayerMuted table.insert ( muted , player ) This is what you want?
-
Get ped/player weapons and return a table with them
JR10 replied to Headshot4Fun's topic in Scripting
3 posts in 1 minutes. btw Max Slot is 12. -
Get ped/player weapons and return a table with them
JR10 replied to Headshot4Fun's topic in Scripting
local playerWeapons = {} for slot = 0, 12 do local weapon = getPedWeapon(player, slot) table.insert(playerWeapons, weapon) end just a start. -
@ what line the error is.
-
Isn't that the exact same thing as I said?
-
Thanks, what you mean by a record.
-
Use team names. local playerTeam = getAccountData (theCurrentAccount, "funmodev2-team") setPlayerTeam (source, getTeamFromName(playerTeam)) setAccountData (account, "funmodev2-team", getTeamName ( getPlayerTeam (source) ) )
-
No, it's not.
-
server: vliegtuigenn = { [592]=true, [511]=true, [512]=true, [593]=true, [520]=true, [553]=true, [593]=true, [476]=true, [519]=true, [460]=true, [513]=true, [577]=true } addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () for i,v in pairs(getElementsByType("player")) do bindKey(v,"b","down",autopiloot) end end) function autopiloot ( player ) local vliegtuig = getPedOccupiedVehicle(player) if ( vliegtuigenn[getElementModel(vliegtuig)] ) then triggerClientEvent ( "deGui", getRootElement(), vliegtuigen ) end end function moveLV ( ) local car = getPedOccupiedVehicle ( source ) local object = createObject ( 980, 0, 0, 3 ) attachElements ( object, car ) moveObject ( object, 10000, 0, 0, 6 ) end addEvent( "LV", true ) addEventHandler( "LV", getRootElement(), moveLV ) client: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Window[1] = guiCreateWindow(206,160,216,320,"Auto piloot",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible (GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(15,32,192,29,"San Fiero Airport",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(15,80,192,29,"Las Venturas Airport",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(15,129,192,29,"Verdant Meadows Airport",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(15,178,192,29,"Los Santos Airport",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(13,224,194,87,"\nDeze Autopiloot script is gemaakt bij [DenR]Danny \n Heb veel plezier ermee \n zitten er bugs in gebruik dan /report",false,GUIEditor_Window[1]) function deGui() guiSetVisible (GUIEditor_Window[1],true) showCursor(true) end addEvent("deGui",true) addEventHandler("deGui",getRootElement(),deGui) addEvent("deGuiWeg",true) addEventHandler("deGuiWeg",getRootElement(), function () guiSetVisible(GUIEditor_Window[1],false) showCursor (false) end) function move () triggerServerEvent ( "LV", getLocalPlayer()) end function clicked (button) if (source == GUIEditor_Button[2]) then setTimer ( move, 1000, 1 ) guiSetVisible (GUIEditor_Window[1],false) showCursor (false) outputChatBox ("Auto Piloot: Oke, U wordt naar Las Venturas Airport gebracht",225,225,0) elseif (source == GUIEditor_Button[1]) then outputChatBox ("Auto Piloot: Oke, U wordt naar San Fiero Airport gebracht",225,225,0) guiSetVisible (GUIEditor_Window[1],false) showCursor (false) elseif (source == GUIEditor_Button[3]) then outputChatBox ("Auto Piloot: Oke, U wordt naar Verdant Meadows Airport gebracht",225,225,0) guiSetVisible (GUIEditor_Window[1],false) showCursor (false) elseif (source == GUIEditor_Button[4]) then outputChatBox ("Auto Piloot: Oke, U wordt naar Los Santos Airport gebracht",225,225,0) guiSetVisible (GUIEditor_Window[1],false) showCursor (false) end end addEventHandler("onClientGUIClick",getRootElement(), clicked )
-
That's because you copied it, without even looking. I made a comment, so you uncomment it, and put the arguments.