1
Modding Questions/Help Archives / Open Locked Door??
« on: January 14, 2014, 07:32:59 AM »
i have a simply question
How to open the locked door thought LUA?
thanks. . .
How to open the locked door thought LUA?
thanks. . .
News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..
Messages | Topics | Attachments
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
local l_1_0 = 270 -- X coords
local l_1_1 = -110 -- Y coords
local l_1_2 = 6.4000000953674 -- Z coords
PlayerSetHealth(200) -- gives the player 200 health
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- teleports the player to the sidewalk outside the boys dorm
end
F_Davis = function()
Davis = PedCreateXYZ(99, 301.498993, -72.504997, 6.003000)
DavisBlip = AddBlipForChar(Davis, 6, 2, 2)
end
F_Davis2 = function()
if PedInRectangle(gplayer, 326.8171387, -103.0250931, 323.7320557, -95.51804352) then
PedRecruitAlly(gplayer, Davis)
end
end
MissionCleanup = function()
collectgarbage()
end -- end statement
main = function()
F_Davis() -- Function Call
F_Davis2()
end
PedIsinRectangle(Ped,X1,Y1,X2,Y2)
You want davis is be your bodyguard?
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
local l_1_0 = 270 -- X coords
local l_1_1 = -110 -- Y coords
local l_1_2 = 6.4000000953674 -- Z coords
PlayerSetHealth(200) -- gives the player 200 health
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- teleports the player to the sidewalk outside the boys dorm
end
F_Davis = function()
Davis = PedCreateXYZ(99, 301.498993, -72.504997, 6.003000)
DavisBlip = AddBlipForChar(Davis, 6, 2, 2)
end
F_Davis2 = function()
if PlayerIsInTrigger(TRIGGER._TSCHOOL_FRONTGATE) then
PedRecruitAlly(gplayer, Davis)
end
end
MissionCleanup = function()
collectgarbage()
end -- end statement
main = function()
F_Davis() -- Function Call
F_Davis2()
end
GTA San Andreas doesn't use LUA. It uses SCM.
You can open up the Main.scm [Located in GTA San Andreas\data\script] with Sanny Builder.
A modder in gtagarage made a mod that allows you to create missions and share them with other people. It is user friendly so it's not necessary to know scm scripting.
http://www.gtagarage.com/mods/show.php?id=5038