Jump to content

Keiichi1

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by Keiichi1

  1. Keiichi1

    Menu

    For clicking i'd use onClientClick and if the cursor is at the right position and the client clicks, it would make the request.
  2. Open the mapmanager resources' meta.xml file. And search for the color setting. <setting name="*color" value="#E1AA5A"/> And change the hex code as you want.
  3. I have a resource called fixmaps, i don't remember where is it from, maybe community. https://ufile.io/jjud4
  4. First you need to get the clients' screen resoulution, you can do it by: local sx, sy = guiGetScreenSize() I usually divide sx and sy by 2 so: dxDrawImage(sx/2, sy/2, 50, 50, "someimg.png") And then you start positioning your image. dxDrawImage((sx/2) - 300, sy/2, 50, 50, "someimg.png") -- And start reducing the number you want
  5. setTimer(function() end, 600000, 1)
  6. You can clone the dead player with an alive ped and set the actual player dimension to a different dimension.
  7. Why don't you implement the code Worthless gave you into your code, you already have? It's possible with some basic lua knowledge.
  8. If the cursor isn't showing, returns false as the first value.
  9. Warning: You should use the global variable clientserverside instead of passing the localPlayer by parameter or source. Otherwise event faking (passing another player instead of the localPlayer) would be possible. More information at addEventHandler Copied from triggerServerEvent's wiki page.
  10. I know if I do this for you, you won't learn anything but... I want to help newbies. local allowedSerials = { ["SomeSerial"] = true, -- Change it to the players serial you want to grant access to /veh command --["SomeSerial2"] = true } addCommandHandler("veh", function(thePlayer, cmd, vehid) -- Adding 'veh' command handler if tonumber(vehid) then -- Check if the 'vehid' arg. is a number if allowedSerials[getPlayerSerial(thePlayer)] then -- Check if the player using the command have his/her serial in the table local vehname = getVehicleNameFromModel(tonumber(vehid)) -- Getting vehicle name if vehname ~= "" then -- If vehicle name is not an empty string local x, y, z = getElementPosition(thePlayer) -- Getting his/her positions local veh = createVehicle(tonumber(vehid), x, y+3, z) -- Creating the vehicle near the player if veh then -- If the vehicle created successfully outputChatBox("Created vehicle: "..vehname, thePlayer) -- Output the created vehicle's name end else outputChatBox("Please enter a valid vehicle model ID.", thePlayer) -- If the specified ID is not valid end else outputChatBox("You don't have access to this command.", thePlayer) -- If the players serial is not in the table end else outputChatBox("[SYNTAX]: /"..cmd.." [Model ID]", thePlayer) -- If the 'vehid' arg. is not specified or not a number end end) I wrote some comments, read it, hope you understand how it works!
  11. Tudnál egy képet mellékelni? Talán tudok segíteni.
  12. Hi! Why don't you use setCameraTarget?
  13. Try this: https://community.multitheftauto.com/index.php?p=resources&s=details&id=12404
  14. Hello! How to disable jogging? I want to the player just can walk by pressing ALT, and sprint with space.
×
×
  • Create New...