Clientside
toggleControl ( "radar", false )
Serverside
toggleControl ( sourcePlayer, "radar", false )
Turns off the F11 radar.
Use showPlayerHudComponent to show/hide the radar in the bottom left corner.
Try opening GTA San Andreas (Single Player) and adjusting the mouse settings there, before going back into MTA. Sometimes it can be caused randomly by using windows mode on a server, hence why it is recommended by the devs that you do not play in windowed mode. Windowed mode was put in for scripters who need to ALT+Tab very frequently
function inicio (res)
local result = mysql_query(link, "SELECT * FROM torneo_clanes") --get a list of team names
if ( result ) then
for result,row in mysql_rows(result) do
local clanname = row["clan"]
createTeam( clanname )
end
else
outputDebugString("mysql_query failed: (" .. mysql_errno(mysqlconnecttoserver) .. ") " .. mysql_error(mysqlconnecttoserver))
end
mysql_free_result(result)
end
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), inicio)
Should work in theory.
I'm looking for a way to retrieve the model of a pickup.
The pickup I've created is a custom model, using the Lua code:
local pickup_whatever = createPickup ( 0, 0, 0, 3, 1272, 30000)
The model ID that I have used is 1272 (Blue house). I've tried getPickupAmmo and getPickupAmount but they both return zero.
Any suggestions on how I can retrieve the model?
They seem to be lacking examples and thorough documentation in the wiki.
How am I able to set a script (resource)'s right to specific functions (ie: ban), through scripting functions?
Take a look at the MTA Wiki, in particular to GUI functions. (Specifically looking at Text Label functions) On the contrare, you may wish to keep it serverside, in that case, I recommend you take a look at TextCreateDisplay.
Asking for some scripting help is one thing. Asking for pretty much a whole gamemode to be scripted to your personal preference is just nonsense. You'll feel a lot better once you've scripted something for yourself.
To recap, look at these links:
Serverside:
TextCreateDisplay
Clientside:
GUISetText
Obviously, those functions need to be used in conjunction with other functions to properly work. These are all detailed and listed in both the examples and the "See Also" links.
I've seen this be influenced by a driveby vehicle script. Are you playing in a server which allows driveby with unconventional vehicles (ie: other than a sub-machine gun)?
I've seen this be influenced by a driveby vehicle script. Are you playing in a server which allows driveby with unconventional vehicles (ie: other than a sub-machine gun)?
Just follow the path instructions, it seems more than likely that there was a typo in the versions that can be downgraded.
As you can see on the bolded line, it says versions 1.00, but it's downgrading to 1.00, so it most likely was meant to read 2.00.
So once again, just follow whatever instructions are on that thread or included with the patch.