Jump to content

URBAN

Members
  • Posts

    45
  • Joined

  • Days Won

    1

URBAN last won the day on February 6 2018

URBAN had the most liked content!

1 Follower

About URBAN

  • Birthday 12/12/2000

Details

  • Location
    Turkey
  • Occupation
    Student
  • Interests
    Programming/Scripting

Recent Profile Visitors

1,849 profile views

URBAN's Achievements

Rat

Rat (9/54)

10

Reputation

  1. Write openports on console may be u did something wrong
  2. reinstalling windows is best solution
  3. addCommandHandler( 'respawn' , function( player , command , Name ) if ( getPlayerFromName( tostring( Name ) ) ~= false ) then spawnPlayer( getPlayerFromName( tostring( Name ) ) , 0 , 0 , 10 , 0 , tonumber( getElementModel( getPlayerFromName( tostring( Name ) ) )) ) end end )
  4. addEventHandler("onResourceStart",root, function() if fileExists("log.txt") then log = fileOpen("log.txt") else log = fileCreate("log.txt") end end) addEventHandler("onPlayerCommand",root, function(command) fileWrite(file,getPlayerName(source).." used "..command.." command.".."\n" ) end)
  5. addCommandHandler( 'respawn' , function( player , command , Name ) if ( getPlayerFromName( tostring( Name ) ) ~= false ) then spawnPlayer( getPlayerFromName( tostring( Name ) ) , 0 , 0 , 10 , 0 , tonumber( getElementModel(player) ) ) end end )
  6. 143. line at guimanager.lua function toggleEditor ( ) if getElementData(localPlayer,"admin") then else return end add somewhere at core.lua addEventHandler("onPlayerLogin", root, function() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then setElementData(source,"admin",true) end end)
  7. local times = 0 function ada(chosenOption) if chosenOption == 9 then setElementData(root, "played", times+1) end end addEvent("onPollEnd",true,true) addEventHandler("onPollEnd", root,ada)
  8. https://github.com/davidm/lua-matrix/blob/master/lua/matrix.lua add matrix functions from there
  9. URBAN

    All RPG Scripts

    https://forum.multitheftauto.com/forum/149-looking-for-staff/
  10. stop play script // wrong section dude use https://forum.multitheftauto.com/forum/71-scripting/ next time
  11. We don't support leaked resources.
  12. addEventHandler("onPlayerChangeNick", root, function(oldNick, newNick) if string.len(newNick) <= 3 then setPlayerName(source,oldNick) end end)
  13. Use setTimer, getPedWeapon and toggleControl
  14. function AutoFix() if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1])) then --vehicles = getElementsByType ( "vehicle" ) -- for vehicleKey,vehicleValue in ipairs(vehicles) do vehicleValue = getPedOccupiedVehicle(localPlayer) if vehicleValue then else return end fixVehicle ( vehicleValue ) setTimer ( function() setElementHealth ( vehicleValue, 1000.0 ) end, 10000, 1 ) --end end end setTimer( AutoFix, 100, 0 )
  15. URBAN

    help DX box

    https://wiki.multitheftauto.com/wiki/IsMouseInPosition and bindKey
×
×
  • Create New...