Jump to content

Burak5312

Members
  • Content Count

    70
  • Joined

  • Last visited

  • Days Won

    2

Burak5312 last won the day on April 18

Burak5312 had the most liked content!

Community Reputation

14 Decent

1 Follower

About Burak5312

  • Rank
    Transformer

Recent Profile Visitors

683 profile views
  1. If you are talking about the market text, it is not possible, you can hide and open it, but you cannot change the coordinates, for this you have to do it from scratch.
  2. hello you don't need to use event, change thePlayer to hitElement in your first code and of course delete thePlayer from the parameter warpPedIntoVehicle(hitElement, jobVehicle)
  3. hello you can use events you can create an event on client side and run it with triggerClientEvent on server side example: server addEventHandler("onPlayerJoin", root, function() triggerClientEvent(source, "testEvent", source) -- execute event end ) client addEvent("testEvent", true) addEventHandler("testEvent", root, function() --do something here end ) or you can browse this script of IIYAMA I also suggest you to use "onPlayerJoin" Event for key binding.
  4. can you show the code and tell us where and what you want to do?
  5. try to do it like this <min_mta_version server="1.5.4-9.11342" client="1.5.4-9.11342" />
  6. what is not working? i tested it works fine for me
  7. I'm not sure but you can try this local allCommands = {} addEventHandler("onResourceStart", resourceRoot, function(res) -- res = the resource that just started local resourceName = getResourceName(res) local commands = getCommandHandlers(res) -- get all commands from the resource if not (allCommands[resourceName]) then allCommands[resourceName] = {} end for _, command in pairs(commands) do table.insert(allCommands[resourceName], command) outputDebugString("Comand found in "..resourceName.." : "..command) end end) addCommandHandler("test
  8. By the way, if the player suddenly jumps out of the car while driving at 100 kilometers speed, the sound may still work, you can add the following code line for this if(isPedInVehicle(localPlayer) == false) then setSoundPaused(soundChime, true) end
  9. hello you can use timer I edited Tekken's code, you can do it like this function getElementSpeed(theElement, unit) -- Check arguments for errors assert(isElement(theElement), "Bad argument 1 @ getElementSpeed (element expected, got " .. type(theElement) .. ")") local elementType = getElementType(theElement) assert(elementType == "player" or elementType == "ped" or elementType == "object" or elementType == "vehicle" or elementType == "projectile", "Invalid element type @ getElementSpeed (player/ped/object/vehicle/projectile expected, got " .. elementType .. ")") assert((
  10. addEventHandler("onResourceStart", resourceRoot, function(res) local commandsList = {} --table to store commands for _, subtable in pairs( getCommandHandlers() ) do local commandName = subtable[1] local theResource = subtable[2] if not commandsList[theResource] then commandsList[theResource] = {} end table.insert( commandsList[theResource], commandName ) local commands = getCommandHandlers( theResource ) for _, command in pairs( commands ) do commandFound = command
  11. hi you can use textlib for this kind of stuff I use it too it works example local screenW, screenH = guiGetScreenSize() test = dxText:create("Test", screenW/2, screenH/2, false) test:font("default-bold") test:scale(4.0) test:color(255,255,255,255) test:visible(false) addCommandHandler("fade", function() test:visible(true) Animation.createAndPlay(test, dxTextFadeIn(3000)) end )
  12. local blip = createBlip(-715.8314, 2328.1269, 44.1525, 41, 2, 255, 0, 0, 255, 0, 1000) local finishMarker = createMarker(-715.8314, 2328.1269, 125.6, "cylinder", 3.0, 255, 0, 0, 255) addEventHandler("onMarkerHit", finishMarker, function(hitElement) if(getElementType(hitElement) == "player" and isElement(blip)) then destroyElement(blip) end end )
  13. function removeBlip(posX, posY, posZ) for _,blip in ipairs(getElementsByType("blip")) do local x,y,z = getElementPosition(blip) if(posX == x and posY == y and posZ == z) then destroyElement(blip) end end end local blip = createBlip (-715.8314, 2328.1269, 44.1525, 41, 2, 255, 0, 0, 255, 0, 1000) setTimer(function() addCommandHandler ( "blip", function ( thePlayer ) for index, element in ipairs ( getAttachedElements ( thePlayer ) ) do if ( getElementType ( element ) == "blip" ) then destroyElement ( element )
  14. I don't understand. Do you want to create a panel for this function?
×
×
  • Create New...