call(getResourceFromName("business"), "outputMessage", source, "the message bla bla bla...", 0, 245, 33)
The source in this event is the player element.
The problem is with the export from resource you are exporting from.
The player element you use in your export isn't valid.
I recommend you to post your own code.
When you remove row 6, row 7 moves down to row 6. So when you start with 7 and count down to 4, you don't have that problem.
guiGridListRemoveRow ( tGrid, row7 )
guiGridListRemoveRow ( tGrid, row6 )
guiGridListRemoveRow ( tGrid, row5 )
guiGridListRemoveRow ( tGrid, row4 )
fill in >"r", 'g', 'b'< in with a value between 0 and 255.
255, 0, 0 = red color
0, 255, 0 = green color
0, 0, 255 = blue color
Or mix the color channels until you have the color you want.
And you are ready to go.
Tables would be a better solution, but you seems not to use them. So...
local VIP = getElementData(localPlayer, "VIP")
if VIP == "Bronze" then
if button == "1" then
elseif button == "2" then
elseif button == "3" then
end
elseif VIP == "Silver" then
if button == "1" then
elseif button == "2" then
elseif button == "3" then
elseif button == "4" then
end
elseif VIP == "Gold" then
-- ..................
else -- not VIP or unknown kind.
if button == "1" then
elseif button == "2" then
end
end
Not Work
Don't waste our time with those useless replies. Debug your code better.
outputDebugString(tostring(getElementData(localPlayer, "VIP")))
If it outputs nil, you simply didn't set it. Which means the bug is at the place where you should have set the element data.
no, not directly.
But you can use:
"onClientRender" + https://wiki.multitheftauto.com/wiki/Is ... inColShape + getElementPosition + if Z < 300 then
(+ getTickCount() if you want to use less cpu and memory)
Reset player?
If you save the last position every execution of the code and the player is inside the collision, you can reset the player back to that position.
Drawing?
Drawing a line 2D on your radar, I don't know. But you can study the tactic's script for that.
use the first example of:
getElementMatrix
in order to take also the pitch in account.
Can also be used to find the vector direction forwards of the vehicle, which you can add as velocity multiplier for your projectiles.
If you already tested everything, then you would know that directly after execution of the function triggerLatentServerEvent, there is at least one handle from getLatentEventHandles().
What is the bandwidth limit? How large is the transfer? And do you have ping in your test server?
And how is your code structure...
Test code, you can use.
addEventHandler("onClientRender",root,
function ()
dxDrawText(#getLatentEventHandles(),300,300)
end)
https://wiki.multitheftauto.com/wiki/Ga ... sing_Order
As scripter you don't want to execute too much DX functions, before rendering the actually game.
if not (hitElement) or (getElementType(hitElement)~="player") then -- Didn't attack someone
if hitElement and getElementType(hitElement) ~= "player" then -- Didn't attack someone
I am using a script that draws bullet holes at positions where you shoot.The limit of the amount of image is 100, but also depends if they are executed within 2 ms. If it takes longer than 2 ms, the images after that amount of time will not be rendered. (images are compressed with dxt5 and saved with a very small png-8 file) My pc renders all 100, so no problem at all.
I think your problem lays with the shaders or well 1.5 seems to have some changes in processing them.
No, that is where Google comes in.. Just Google those names and download the softwares.
Anyway this is a scripting section and not 'how to split your col and txd files'.