Jump to content

JR10

Retired Staff
  • Posts

    2,947
  • Joined

  • Last visited

Everything posted by JR10

  1. JR10

    Frames script

    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.
  2. JR10

    Frames script

    English only here, translate that.
  3. JR10

    question

    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 )
  4. 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.
  5. Stole Castillo's racer user panel: https://community.multitheftauto.com/index.php?p= ... ls&id=2686
  6. JR10

    Muting script

    What you mean a name? That table can only contains players. if muted [ player ] ~= nil then
  7. JR10

    Cbug script

    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
  8. JR10

    SQL Data Error.

    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
  9. JR10

    question

    Make a check for source. if source == hydra1 or source == hydra2 then end
  10. JR10

    Muting script

    Have already made the mute functionality? for tables: muted = { } --onPlayerMuted table.insert ( muted , player ) This is what you want?
  11. local playerWeapons = {} for slot = 0, 12 do local weapon = getPedWeapon(player, slot) table.insert(playerWeapons, weapon) end just a start.
  12. JR10

    A little problem

    My point exactly.
  13. @ what line the error is.
  14. JR10

    A little problem

    Isn't that the exact same thing as I said?
  15. Thanks, what you mean by a record.
  16. JR10

    A little problem

    Use team names. local playerTeam = getAccountData (theCurrentAccount, "funmodev2-team") setPlayerTeam (source, getTeamFromName(playerTeam)) setAccountData (account, "funmodev2-team", getTeamName ( getPlayerTeam (source) ) )
  17. 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 )
  18. That's because you copied it, without even looking. I made a comment, so you uncomment it, and put the arguments.
×
×
  • Create New...