Jump to content

12p

Members
  • Posts

    2,608
  • Joined

  • Last visited

Everything posted by 12p

  1. ok it's easy. Go to GUI Editor. Enable your window or whatever you want to make relative. Right mouse click on the mta "desktop", then select "Load GUI". Click on your window. Set all the variable names (you know, "mainWindow", "exitButton", etc...) When you ended, right click on mta desktop and select "Rel/Abs Screen", then do the same with "Rel/Abs Child". Then go to mta desktop with right click and select "Output Code". Go to [mta/server/mods/deathmatch/resources/guieditor] and open "GUIEditorOutput.txt". Then check the last part of the file and copy all the lines that are about the GUI into your GUI Script. ENJOY
  2. omg I meant you used GUI Editor Resource, not only changing the relative function parameter -.-
  3. if "timers" means the unjailing function then yes.
  4. When you jail it, you must run that line. If the player leaves, use getTimerDetails Store the first value in SQL. When the player enters, check the name, jail him if needed, then use again the setTimer function.
  5. 12p

    Whats needed

    Ok, but you must raise the price, man. 1000 lines is an amazing lines quantity, and it MUST requires more money or nothing. We can trade via PM, but I won't work with that money quantity.
  6. setTimer (unjailFunction, theSQLTime,1 )
  7. Check RELATIVE GUI. Use GUI Editor to toggle the mode to relative
  8. I have this kind of table: theTable = { {value1, value2, value3}, {valueA, valueB, valueC} } I will store them in a gridlist, but I want to sort the mini-tables by the second value, how to do that? I saw at LUA Wiki but I didn't see any way to sort more complicated tables like this one.
  9. looks like this can be done by using a module, "Texturer".
  10. Not bad, just I didn't like the final because looks too much hard huh.
  11. Where is the "nil" thing? it's "time"?
  12. one EPIC problem. Too many "if then, if then", replace with some "and". I don't get the error (use debugging!) but I simplified a bit your code. Check out: addCommandHandler( "togwindows", function ( player, vehicle ) if exports.players:isLoggedIn( player ) then if isPedInVehicle ( player ) then local data = vehicles[ source ] if data and data.vehicleID > 0 and data.windows == 0 then local success, error = exports.sql:query_free( "UPDATE vehicles SET windows = 1 WHERE vehicleID = " .. data.vehicleID ) if success then exports.chat:me( source, "rolls the windows up.") end if error then outputChatBox( "My-SQL Error.", source, 255, 0, 0 ) end elseif data.windows == 1 then local success, error = exports.sql:query_free( "UPDATE vehicles SET windows = 0 WHERE vehicleID = " .. data.vehicleID ) if success then exports.chat:me( source, "rolls the windows down.") end if error then outputChatBox( "My-SQL Error.", source, 255, 0, 0 ) else outputChatBox( "You can't do this with a temporary vehicle. (SQL Error)", source, 255, 0, 0 ) end end else outputChatBox( "You are not in a vehicle.", player, 255, 0, 0 ) end end end ) When I do /togwindows it shows no errors, warnings or anything it just does nothing.
  13. 12p

    Whats needed

    Until I see a PayPal account with real cash inside, I won't work. But I see some cash I will do it. or maybe a contract
  14. it works, that is what you want don't you? it works, it tells you if the player is cuffed! -.-
  15. function isPlayerCuffed(other) local other, name = exports.players:getFromName( other ) if (other) then local test = getControlState(other, jump) outputDebugString("other not found") if test then return true end end --return false WHAT THE HELL IS THIS? Are you blind? This is causing the function to return "false" end function isPlayerCuffed(other) local other, name = exports.players:getFromName( other ) if (other) then local test = getControlState(other, jump) outputDebugString("other not found") if test then return true else return false --YOU SEE, HERE WILL WORK end end end
  16. I don't know what's the problem. But I guess reinstalling MTA should solve that problem.
  17. It can be done, but not so simple, I have no idea how to do that placing block way
  18. Go check some login systems in Community, then try to understand them, and then do one by yourself.
  19. drv = getElementbyID("drv") drvctrls = {{"accelerate", "num_8"}, {"brake_reverse", "num_2"}, {"vehicle_left", "num_4"}, {"vehicle_right", "num_6"}, {"handbrake", "num_5"}} function ctrldrv () for index,key in pairs(drvctrls) do setPedControlState(drv,key[1],getKeyState(key[2])) end end addEventHandler("onClientPreRender",getRootElement(),ctrldrv)
  20. Your [lua] tag is FAIL lol. Scoreboard could be used to show the player stats to all, but there is very low width to make columns huh.
×
×
  • Create New...