-
Posts
2,947 -
Joined
-
Last visited
Everything posted by JR10
-
getPedOccupiedVehicle -- getting a ped's vehicle getPedOccupiedVehicleSeat -- getting a ped's seat getVehicleController -- getting vehicle's controller/driver
-
Download the new version, https://community.multitheftauto.com/index.php?p= ... ils&id=347
-
local x,y = guiGetScreenSize() function wasted (killer, weapon, bodypart) local sound = playSound("sounds/wasted.ogg") setSoundVolume(sound, 0.5) blood = guiCreateStaticImage(0.2611,0.5067,0.4826,0.1111,"images/firstblood.png",true) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) setTimer ( function() destroyElement ( blood ) end, 5000, 1 )
-
setAccountData(playerAccount, "dollars", getAccountData ( playerAccount,"dollars" ) - 1) setVehicleLocked
-
Post showLoginWindow function.
-
--Collision shape functions createColCircle createColCuboid createColRectangle createColSphere createColTube createColPolygon
-
I tried it again, and I did crash. I reported it, along with the script, the mod, and reproduce steps.
-
I specified 0, just like what the wiki says. EDIT: It only happens when I "F12 >> Minimize >> Restore" Normally without taking a screenshot, I don't crash. Should I still report it?
-
Yes, in the latest, and it didn't happen to me before, just when I got to test replacing peds/weapons in 1.1.1.
-
You use /lock to lock the car, not press L.
-
When I take a screenshot, minimize, restore, I crash, (I had a skin mod) should I report that on mantis?
-
setVehicleLocked /lock: addCommandHandler ( "lock", function(player) if not isPedInVehicle ( player ) then return end local veh = getPedOccupiedVehicle ( player ) setVehicleLocked ( veh , not isVehicleLocked ( veh ) ) end)
-
Here comes my point, you don't even know how to outputChatBox to one player, that's what copy+paste every code does. outputChatBox("You Dont Have Money to buy weapon",source)
-
This example is wrong, onPlayerJoin will have a guest account. function onPlayerQuit ( ) -- when a player leaves, store his current money amount in his account data local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then -- if the player is logged in local playermoney = getPlayerMoney ( source ) -- get the player money setAccountData ( playeraccount, "piraterpg.money", playermoney ) -- save it in his account end end function onPlayerLogin (_, playeraccount ) -- when a player logins, retrieve his money amount from his account data and set it if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "piraterpg.money" ) -- make sure there was actually a value saved under this key (check if playermoney is not false). -- this will for example not be the case when a player plays the gametype for the first time if ( playermoney ) then setPlayerMoney ( source, playermoney ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin)
-
You must start scoreboard first, put it before countryid.
-
You don't need to make a new topic. https://community.multitheftauto.com/index.php?p= ... ls&id=1995
-
You're a f*ucking artist dude. Great job.
-
Stop being so f*cking negative, 1.1.0 has a lot of new awesome features, take a look at that long list of Changes in 1.1. [General] Replace weapon models (Cazomino05) - resolved. Replace weapon models added? Anyway, good job, thanks.
-
May you PM me or post the full code?
-
executeSQLInsert ( "Gangs", "'".. gangname .."', '"..sourcename.."'" )
-
function creategang(source, commandName, gangname) isgang = getElementData(source,"gang") if isgang then outputChatBox("Your allready in a gang /quitgang first", source, 255, 0, 0) else sourcename = getPlayerName ( source ) local gang = executeSQLSelect ( "Gangs", "Gangname", "Gangname = '" .. gangname .. "'" ) if gang and #gang > 0 then outputChatBox("This Gang is allready created!", source, 255, 0, 0) else local money = getPlayerMoney(source) if (money > 3000) then takePlayerMoney(source, tonumber(3000)) executeSQLInsert ( "Gangs", "'Gangname','Leader'", "'".. gangname .."', '"..sourcename.."'" ) outputChatBox("You have created the "..gangname..".", source, 0, 255, 0) setElementData(source, "gang", gangname) setElementData(source, "Rank", "Leader") end end end end addCommandHandler("creategang", creategang, gangname)
-
Some guy uploaded all shader resources, and uploaded coloured snow, I.E: he just stole snow resource, and changed the images. https://community.multitheftauto.com/index.php?p= ... ls&id=2889 https://community.multitheftauto.com/index.php?p= ... ls&id=2890 https://community.multitheftauto.com/index.php?p= ... ls&id=2891 https://community.multitheftauto.com/index.php?p= ... ls&id=2892 https://community.multitheftauto.com/index.php?p= ... ls&id=2893 https://community.multitheftauto.com/index.php?p= ... ls&id=2894 https://community.multitheftauto.com/index.php?p= ... ls&id=2895 https://community.multitheftauto.com/index.php?p= ... ls&id=2896 https://community.multitheftauto.com/index.php?p= ... ls&id=2897 https://community.multitheftauto.com/index.php?p= ... ls&id=2898
-
Method of creation, saving, loading should be the same. EDIT: removeElementData