<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Masterofquebec</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Masterofquebec"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Masterofquebec"/>
	<updated>2026-05-08T01:22:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Requested_Functions_and_Events&amp;diff=21736</id>
		<title>Requested Functions and Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Requested_Functions_and_Events&amp;diff=21736"/>
		<updated>2009-10-15T00:10:33Z</updated>

		<summary type="html">&lt;p&gt;Masterofquebec: /* Server-side */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Server-side==&lt;br /&gt;
&lt;br /&gt;
onVehicleCreated or an equivalent... shouldn't be too hard? -Robhol (14:15 Jul 6, 08)&lt;br /&gt;
:If we did it, it'd be onElementCreated - what do you want this for? [[User:EAi|eAi]] 08:58, 7 July 2008 (CDT)&lt;br /&gt;
::onElementCreated is a good idea - it could be used for lots of things. Also, how about onVehicleDrown or whatever? that is, when a vehicle hits deep water. Checking for collisions and stuff is very awkward, and client-side only, and has to be checked constantly.. -Robhol (17:31 Jul 9 08)&lt;br /&gt;
&lt;br /&gt;
I ask for a function that detects if a ped is on floor, eg. '''isPedOnFloor(ped thePed)''', thanks. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 11:29, 15 June 2008 (CDT)&lt;br /&gt;
: [[isPedOnGround]]? [[User:Awwu|Awwu]] 12:58, 15 June 2008 (CDT)&lt;br /&gt;
::I need to know if the player has its back touching the ground, not if it's simply &amp;quot;on ground&amp;quot;. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 14:16, 16 June 2008 (CDT)&lt;br /&gt;
:::Check what task the player has, they should have TASK_COMPLEX_FALL_AND_GET_UP or TASK_COMPLEX_FALL_AND_STAY_DOWN... [[User:EAi|eAi]] 19:12, 16 June 2008 (CDT)&lt;br /&gt;
::::Thanks. What task does player have after being hitten by a melee attack that cause it to fall down? Would &amp;quot;TASK_SIMPLE_BE_KICKED_ON_GROUND&amp;quot; and &amp;quot;TASK_SIMPLE_GET_UP&amp;quot; work? --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 09:35, 17 June 2008 (CDT)&lt;br /&gt;
:::::Try it, I'm not entirely sure. You should be able to produce some code to show the player's current tasks very easily... [[User:EAi|eAi]] 19:20, 17 June 2008 (CDT)&lt;br /&gt;
::::::My goal is to edit the standard damage of the attacks, in this case i have to know when player is on ground to cause higher damage. However it doesn't seem to work, when i hit the player it simply gets up without animation with no damage. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 19:10, 19 June 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It may looks strange and useless (waste of time?) but I think that it could be a awesome feature. Having a web browser.&lt;br /&gt;
Like: http://www.youtube.com/watch?v=wT1UR6qEgdg&lt;br /&gt;
http://princeofcode.com/awesomium.php&lt;br /&gt;
&lt;br /&gt;
There could be something like createBrowser( float x, float y, float z, [float rx, float ry, float rz, float width, float high, string url, bool locked] ) &lt;br /&gt;
locked parameter: false = navigation bar present, true = no navigation bar&lt;br /&gt;
toggleBrowserFullsceenMode(browser theBrowser, bool tog, [bool smooth])&lt;br /&gt;
smooth parameter: If set to true the browser will smoothly move from his ingame position to the fullscreen position&lt;br /&gt;
toggleBrowserBackground(browser theBrowser, bool tog)&lt;br /&gt;
Set the browser background transparent.&lt;br /&gt;
&lt;br /&gt;
Security: Disable file downloads, disable popups (disable flash, javascript and any other protocols than http and https [no mailto and stuff...]?)&lt;br /&gt;
&lt;br /&gt;
Should be a Client and server function. --[[User:Masterofquebec|Masterofquebec]] 00:10, 15 October 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Client-Side==&lt;br /&gt;
Would it be possible to add a color arg to guiGridListSetItemText()? Im trying to get each item colored differently in one list. Thanks, ABEL&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I need a function which could get current target of hydra or a HS rocket launcher, like when someone press space and targets a element, to get what element is it for calculating distance from it. '''getPlayerOccupiedVehicleTarget''' or '''getPlayerHSTarget'''. &lt;br /&gt;
Thanks in advance -Nidza a.k.a. CodeMaster 2:26 PM 19th June 2008.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
It'd be useful to have something to disable elements of the default hud (weapon display, health display, armor, radar, etcetera) so that you can create your own HUDs. Something like '''setHudElement(element name, toggle)'''.&lt;br /&gt;
&lt;br /&gt;
[[User:Lord Xalphox|Lord Xalphox]] 19:32, 22 March 2009 (CET)&lt;br /&gt;
:[[showPlayerHudComponent]]? [[User:Awwu|Awwu]] 19:43, 22 March 2009 (CET)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I'd like to have a function that sets the chatbox input line text. Then I could script my own chat history function (that inserts the last sent text into the input line again by pressing arrow up) (which samp has since 0.2 btw) since nobody builds it into the client. [[User:NeonBlack|NeonBlack]] 12:03, 4 July 2009 (CEST) PS.: samp also supports cut, copy and paste :P&lt;/div&gt;</summary>
		<author><name>Masterofquebec</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Requested_Functions_and_Events&amp;diff=21735</id>
		<title>Requested Functions and Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Requested_Functions_and_Events&amp;diff=21735"/>
		<updated>2009-10-15T00:09:41Z</updated>

		<summary type="html">&lt;p&gt;Masterofquebec: /* Server-side */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Server-side==&lt;br /&gt;
&lt;br /&gt;
onVehicleCreated or an equivalent... shouldn't be too hard? -Robhol (14:15 Jul 6, 08)&lt;br /&gt;
:If we did it, it'd be onElementCreated - what do you want this for? [[User:EAi|eAi]] 08:58, 7 July 2008 (CDT)&lt;br /&gt;
::onElementCreated is a good idea - it could be used for lots of things. Also, how about onVehicleDrown or whatever? that is, when a vehicle hits deep water. Checking for collisions and stuff is very awkward, and client-side only, and has to be checked constantly.. -Robhol (17:31 Jul 9 08)&lt;br /&gt;
&lt;br /&gt;
I ask for a function that detects if a ped is on floor, eg. '''isPedOnFloor(ped thePed)''', thanks. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 11:29, 15 June 2008 (CDT)&lt;br /&gt;
: [[isPedOnGround]]? [[User:Awwu|Awwu]] 12:58, 15 June 2008 (CDT)&lt;br /&gt;
::I need to know if the player has its back touching the ground, not if it's simply &amp;quot;on ground&amp;quot;. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 14:16, 16 June 2008 (CDT)&lt;br /&gt;
:::Check what task the player has, they should have TASK_COMPLEX_FALL_AND_GET_UP or TASK_COMPLEX_FALL_AND_STAY_DOWN... [[User:EAi|eAi]] 19:12, 16 June 2008 (CDT)&lt;br /&gt;
::::Thanks. What task does player have after being hitten by a melee attack that cause it to fall down? Would &amp;quot;TASK_SIMPLE_BE_KICKED_ON_GROUND&amp;quot; and &amp;quot;TASK_SIMPLE_GET_UP&amp;quot; work? --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 09:35, 17 June 2008 (CDT)&lt;br /&gt;
:::::Try it, I'm not entirely sure. You should be able to produce some code to show the player's current tasks very easily... [[User:EAi|eAi]] 19:20, 17 June 2008 (CDT)&lt;br /&gt;
::::::My goal is to edit the standard damage of the attacks, in this case i have to know when player is on ground to cause higher damage. However it doesn't seem to work, when i hit the player it simply gets up without animation with no damage. --&amp;lt;span style=&amp;quot;font-family:Courier New, Courier, monospace&amp;quot;&amp;gt;[[User:Shadd|Shadd]]&amp;lt;/span&amp;gt;&amp;lt;sub&amp;gt;([[User_talk:Shadd|In caso di emergenza rompere le scatole]])&amp;lt;/sub&amp;gt; 19:10, 19 June 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It may looks strange and useless (waste of time?) but I think that it could be a awesome feature. Having a web browser.&lt;br /&gt;
Like: http://www.youtube.com/watch?v=wT1UR6qEgdg&lt;br /&gt;
http://princeofcode.com/awesomium.php&lt;br /&gt;
&lt;br /&gt;
There could be something like createBrowser( float x, float y, float z, [float rx, float ry, float rz, float width, float high, string url, bool locked] ) &lt;br /&gt;
locked parameter: false = navigation bar present, true = no navigation bar&lt;br /&gt;
toggleBrowserFullsceenMode(browser theBrowser, bool tog, [bool smooth])&lt;br /&gt;
smooth parameter: If set to true the browser will smoothly move from his ingame position to the fullscreen position&lt;br /&gt;
toggleBrowserBackground(browser theBrowser, bool tog)&lt;br /&gt;
Set the browser background transparent.&lt;br /&gt;
&lt;br /&gt;
Security: Disable file downloads, disable popups (disable flash, javascript and any other protocols than http and https [no mailto and stuff...]?)&lt;br /&gt;
&lt;br /&gt;
Should be a Client and server function.&lt;br /&gt;
&lt;br /&gt;
==Client-Side==&lt;br /&gt;
Would it be possible to add a color arg to guiGridListSetItemText()? Im trying to get each item colored differently in one list. Thanks, ABEL&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I need a function which could get current target of hydra or a HS rocket launcher, like when someone press space and targets a element, to get what element is it for calculating distance from it. '''getPlayerOccupiedVehicleTarget''' or '''getPlayerHSTarget'''. &lt;br /&gt;
Thanks in advance -Nidza a.k.a. CodeMaster 2:26 PM 19th June 2008.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
It'd be useful to have something to disable elements of the default hud (weapon display, health display, armor, radar, etcetera) so that you can create your own HUDs. Something like '''setHudElement(element name, toggle)'''.&lt;br /&gt;
&lt;br /&gt;
[[User:Lord Xalphox|Lord Xalphox]] 19:32, 22 March 2009 (CET)&lt;br /&gt;
:[[showPlayerHudComponent]]? [[User:Awwu|Awwu]] 19:43, 22 March 2009 (CET)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I'd like to have a function that sets the chatbox input line text. Then I could script my own chat history function (that inserts the last sent text into the input line again by pressing arrow up) (which samp has since 0.2 btw) since nobody builds it into the client. [[User:NeonBlack|NeonBlack]] 12:03, 4 July 2009 (CEST) PS.: samp also supports cut, copy and paste :P&lt;/div&gt;</summary>
		<author><name>Masterofquebec</name></author>
	</entry>
</feed>